From 54699d6cca70f56da000d944ce0efe87fd3a59cd Mon Sep 17 00:00:00 2001 From: Akuli Date: Tue, 4 May 2021 23:35:05 +0300 Subject: [PATCH] change positional-only test to use Python 3.10 (#5340) --- tests/stubtest_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/stubtest_test.py b/tests/stubtest_test.py index 18d6c5e09..b3ba3b78c 100755 --- a/tests/stubtest_test.py +++ b/tests/stubtest_test.py @@ -51,7 +51,7 @@ def run_stubtest(typeshed_dir: Path) -> int: "--whitelist", str(whitelist_dir / combined_whitelist), ] - if sys.version_info < (3, 9): + 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 the latest Python version. cmd += ["--ignore-positional-only"] @@ -62,7 +62,7 @@ def run_stubtest(typeshed_dir: Path) -> int: print( "\nNB: stubtest output depends on the Python version (and system) it is run with. " "See README.md for more details.\n" - "NB: We only check positional-only arg accuracy for Python 3.9.\n" + "NB: We only check positional-only arg accuracy for Python 3.10.\n" "\nCommand run was: {}\n".format(" ".join(cmd)), file=sys.stderr, )