mypy_test.py: restore previous behaviour where all third-party stubs are tested by default (#8842)

This commit is contained in:
Alex Waygood
2022-10-04 11:01:51 -07:00
committed by GitHub
parent 1fc58e5413
commit 55cddc7ac7

View File

@@ -356,7 +356,11 @@ def test_third_party_stubs(code: int, args: TestConfig) -> TestResults:
if spec_matches_path(gitignore_spec, distribution_path):
continue
if distribution_path in args.filter or any(distribution_path in path.parents for path in args.filter):
if (
distribution_path in args.filter
or Path("stubs") in args.filter
or any(distribution_path in path.parents for path in args.filter)
):
this_code, checked = test_third_party_distribution(distribution, args)
code = max(code, this_code)
files_checked += checked