diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-06 00:37:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 00:37:28 (GMT) |
commit | e0c44377935de3491b2cbe1e5f87f8b336fdc922 (patch) | |
tree | 63a5ef10c9528b0591833f443e7fe51f7c2675dd /Lib/test/test_regrtest.py | |
parent | 3c0f65ebce10d5327e07245f7cf2beb96b18c970 (diff) | |
download | cpython-e0c44377935de3491b2cbe1e5f87f8b336fdc922.zip cpython-e0c44377935de3491b2cbe1e5f87f8b336fdc922.tar.gz cpython-e0c44377935de3491b2cbe1e5f87f8b336fdc922.tar.bz2 |
Add support.MS_WINDOWS constant (#110446)
Diffstat (limited to 'Lib/test/test_regrtest.py')
-rw-r--r-- | Lib/test/test_regrtest.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py index de2c431..cfe8b57 100644 --- a/Lib/test/test_regrtest.py +++ b/Lib/test/test_regrtest.py @@ -42,8 +42,6 @@ EXITCODE_NO_TESTS_RAN = 4 EXITCODE_RERUN_FAIL = 5 EXITCODE_INTERRUPTED = 130 -MS_WINDOWS = (sys.platform == 'win32') - TEST_INTERRUPTED = textwrap.dedent(""" from signal import SIGINT, raise_signal try: @@ -2072,7 +2070,7 @@ class ArgsTestCase(BaseTestCase): self.check_executed_tests(output, testname, failed=[testname], stats=0, parallel=True) - if not MS_WINDOWS: + if not support.MS_WINDOWS: exitcode = -int(signal.SIGSEGV) self.assertIn(f"Exit code {exitcode} (SIGSEGV)", output) self.check_line(output, "just before crash!", full=True, regex=False) |