mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-112730: Respect tests that require environment variables with no-colorize fixes (#118288)
This commit is contained in:
parent
5a90de0d4c
commit
b43c7e1070
2 changed files with 5 additions and 2 deletions
|
@ -384,6 +384,7 @@ class TracebackCases(unittest.TestCase):
|
|||
])
|
||||
|
||||
@requires_subprocess()
|
||||
@force_not_colorized
|
||||
def test_encoded_file(self):
|
||||
# Test that tracebacks are correctly printed for encoded source files:
|
||||
# - correct line number (Issue2384)
|
||||
|
@ -410,7 +411,7 @@ class TracebackCases(unittest.TestCase):
|
|||
""".format(firstlines, message))
|
||||
|
||||
process = subprocess.Popen([sys.executable, TESTFN],
|
||||
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env={})
|
||||
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
stdout, stderr = process.communicate()
|
||||
stdout = stdout.decode(output_encoding).splitlines()
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue