mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-112730: Make the test suite resilient to color-activation environment variables (#117672)
This commit is contained in:
parent
59a4d52973
commit
345e1e04ec
13 changed files with 89 additions and 16 deletions
|
@ -942,7 +942,7 @@ class TestCommandLine(unittest.TestCase):
|
|||
with support.SuppressCrashReport():
|
||||
ok, stdout, stderr = assert_python_failure(
|
||||
'-c', 'pass',
|
||||
PYTHONTRACEMALLOC=str(nframe))
|
||||
PYTHONTRACEMALLOC=str(nframe), __cleanenv=True)
|
||||
|
||||
if b'ValueError: the number of frames must be in range' in stderr:
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue