From 22deee38e0c3df0eae70306592a7d5468fdef776 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Mon, 20 Apr 2026 12:28:21 +0200 Subject: [PATCH] Remove Python 3.9 workaround in stubtest_stdlib We don't support running the tests with Python 3.9 anymore. Part of #13782 --- tests/stubtest_stdlib.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/stubtest_stdlib.py b/tests/stubtest_stdlib.py index 3c3a89e933f8..76a0ee9842da 100755 --- a/tests/stubtest_stdlib.py +++ b/tests/stubtest_stdlib.py @@ -33,10 +33,6 @@ def run_stubtest(typeshed_dir: Path) -> int: str(typeshed_dir), *allowlist_stubtest_arguments("stdlib"), ] - if sys.version_info < (3, 10): - # As discussed in https://github.com/python/typeshed/issues/3693, we only aim for - # positional-only arg accuracy for python 3.10 and above. - cmd += ["--ignore-positional-only"] print(" ".join(cmd), file=sys.stderr) try: subprocess.run(cmd, check=True)