Skip to content

Commit 55cddc7

Browse files
authored
mypy_test.py: restore previous behaviour where all third-party stubs are tested by default (#8842)
1 parent 1fc58e5 commit 55cddc7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/mypy_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,11 @@ def test_third_party_stubs(code: int, args: TestConfig) -> TestResults:
356356
if spec_matches_path(gitignore_spec, distribution_path):
357357
continue
358358

359-
if distribution_path in args.filter or any(distribution_path in path.parents for path in args.filter):
359+
if (
360+
distribution_path in args.filter
361+
or Path("stubs") in args.filter
362+
or any(distribution_path in path.parents for path in args.filter)
363+
):
360364
this_code, checked = test_third_party_distribution(distribution, args)
361365
code = max(code, this_code)
362366
files_checked += checked

0 commit comments

Comments
 (0)