Support tests/mypy_test.py [package] (#8610)

Currently, the testsuite early exits if it's filtering on a single
package. With this change, it will correctly complete.

For example `tests/mypy_test.py protobuf`
This commit is contained in:
Nipunn Koorapati
2022-08-25 04:25:26 -07:00
committed by GitHub
parent 0f1d1f16b4
commit c697a51378

View File

@@ -341,6 +341,9 @@ def test_third_party_distribution(distribution: str, args: TestConfig) -> TestRe
seen_dists: set[str] = set()
add_third_party_files(distribution, files, args, configurations, seen_dists)
if not files and args.filter:
return TestResults(0, 0)
print(f"testing {distribution} ({len(files)} files)... ", end="")
if not files: