Skip to content

Commit ad3288d

Browse files
[3.9] pythongh-130293: Ensure test__colorize will pass on dumb terminals. (pythonGH-130333) (python#130334)
Ensure colorize tests will run on dumb terminals (or environment with TERM=dumb set) (cherry picked from commit 1b07006) Co-authored-by: Russell Keith-Magee <[email protected]>
1 parent ed3490f commit ad3288d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The tests of terminal colorization are no longer sensitive to the value of
2+
the ``TERM`` variable in the testing environment.

iOS/testbed/iOSTestbedTests/iOSTestbedTests.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ - (void)testPython {
2828
// Xcode log can't display color. Stdout will report that it is *not* a
2929
// TTY.
3030
setenv("NO_COLOR", "1", true);
31-
setenv("PY_COLORS", "0", true);
31+
setenv("PYTHON_COLORS", "0", true);
3232

3333
// Arguments to pass into the test suite runner.
3434
// argv[0] must identify the process; any subsequent arg

0 commit comments

Comments
 (0)