diff options
author | Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | 2025-01-21 16:10:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-21 16:10:08 (GMT) |
commit | 05d12eecbde1ace39826320cadf8e673d709b229 (patch) | |
tree | 2e767c71374e498d1f9759e2ba60177152b396d0 /Lib/test/test_runpy.py | |
parent | 13475e0a5a317fa61f302f030b0effcb021873d6 (diff) | |
download | cpython-05d12eecbde1ace39826320cadf8e673d709b229.zip cpython-05d12eecbde1ace39826320cadf8e673d709b229.tar.gz cpython-05d12eecbde1ace39826320cadf8e673d709b229.tar.bz2 |
gh-127873: Only check `sys.flags.ignore_environment` for `PYTHON*` env vars (#127877)
Diffstat (limited to 'Lib/test/test_runpy.py')
-rw-r--r-- | Lib/test/test_runpy.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Lib/test/test_runpy.py b/Lib/test/test_runpy.py index b64383f..ada78ec 100644 --- a/Lib/test/test_runpy.py +++ b/Lib/test/test_runpy.py @@ -12,8 +12,14 @@ import tempfile import textwrap import unittest import warnings -from test.support import (infinite_recursion, no_tracing, verbose, - requires_subprocess, requires_resource) +from test.support import ( + force_not_colorized_test_class, + infinite_recursion, + no_tracing, + requires_resource, + requires_subprocess, + verbose, +) from test.support.import_helper import forget, make_legacy_pyc, unload from test.support.os_helper import create_empty_file, temp_dir, FakePath from test.support.script_helper import make_script, make_zip_script @@ -758,6 +764,7 @@ s = "non-ASCII: h\xe9" self.assertEqual(result['s'], "non-ASCII: h\xe9") +@force_not_colorized_test_class class TestExit(unittest.TestCase): STATUS_CONTROL_C_EXIT = 0xC000013A EXPECTED_CODE = ( |