From 55cddc7ac779c8c678f12e63993a0a7ee346d090 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 4 Oct 2022 11:01:51 -0700 Subject: [PATCH] `mypy_test.py`: restore previous behaviour where all third-party stubs are tested by default (#8842) --- tests/mypy_test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/mypy_test.py b/tests/mypy_test.py index 188250e3f..5791d52de 100644 --- a/tests/mypy_test.py +++ b/tests/mypy_test.py @@ -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