We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9004953 commit b2e1189Copy full SHA for b2e1189
tests/stubtest_stdlib.py
@@ -18,6 +18,8 @@ def run_stubtest(typeshed_dir: Path) -> int:
18
platform_allowlist = "{}.txt".format(sys.platform)
19
combined_allowlist = "{}-py{}{}.txt".format(sys.platform, sys.version_info.major, sys.version_info.minor)
20
21
+ ignore_unused_allowlist = "--ignore-unused-allowlist" in sys.argv[1:]
22
+
23
cmd = [
24
sys.executable,
25
"-m",
@@ -30,7 +32,8 @@ def run_stubtest(typeshed_dir: Path) -> int:
30
32
"--allowlist",
31
33
str(allowlist_dir / version_allowlist),
34
]
- cmd += sys.argv[1:]
35
+ if ignore_unused_allowlist:
36
+ cmd += ["--ignore-unused-allowlist"]
37
if (allowlist_dir / platform_allowlist).exists():
38
cmd += ["--allowlist", str(allowlist_dir / platform_allowlist)]
39
if (allowlist_dir / combined_allowlist).exists():
0 commit comments