]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-109566: regrtest --fast-ci no longer enables --nowindows (#110121)
authorVictor Stinner <vstinner@python.org>
Fri, 29 Sep 2023 19:49:39 +0000 (21:49 +0200)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2023 19:49:39 +0000 (19:49 +0000)
The --nowindows option is deprecated and does nothing but logs a
warning.

Lib/test/libregrtest/cmdline.py
Lib/test/test_regrtest.py

index 0a863561d5273def1e49c3908124d0472c1f93ac..8562a48446b4a7fd1e2e118bda41e30eb2240c7d 100644 (file)
@@ -4,8 +4,6 @@ import shlex
 import sys
 from test.support import os_helper
 
-from .utils import MS_WINDOWS
-
 
 USAGE = """\
 python -m test [options] [test_name1 [test_name2 ...]]
@@ -414,7 +412,7 @@ def _parse_args(args, **kwargs):
         # Similar to options:
         #
         #     -j0 --randomize --fail-env-changed --fail-rerun --rerun
-        #     --slowest --verbose3 --nowindows
+        #     --slowest --verbose3
         if ns.use_mp is None:
             ns.use_mp = 0
         ns.randomize = True
@@ -424,8 +422,6 @@ def _parse_args(args, **kwargs):
             ns.rerun = True
         ns.print_slow = True
         ns.verbose3 = True
-        if MS_WINDOWS:
-            ns.nowindows = True  # Silence alerts under Windows
     else:
         ns._add_python_opts = False
 
index da1406def555433ce97356fdee73f84bd4489e61..c98b05abcea98c0849ed8112d625bcf06b79c278 100644 (file)
@@ -376,8 +376,6 @@ class ParseArgsTestCase(unittest.TestCase):
 
     def check_ci_mode(self, args, use_resources, rerun=True):
         ns = cmdline._parse_args(args)
-        if utils.MS_WINDOWS:
-            self.assertTrue(ns.nowindows)
 
         # Check Regrtest attributes which are more reliable than Namespace
         # which has an unclear API