Skip to content

Commit 2f6b254

Browse files
committed
Add PY_COLORS to the list of environmental markers.
1 parent 76cc6b7 commit 2f6b254

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

iOS/testbed/iOSTestbedTests/iOSTestbedTests.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ - (void)testPython {
2424

2525
NSString *resourcePath = [[NSBundle mainBundle] resourcePath];
2626

27-
// Disable all color, as the Xcode log can't display color
27+
// Set some other common environment indicators to disable color, as the
28+
// Xcode log can't display color. Stdout will report that it is *not* a
29+
// TTY.
2830
setenv("NO_COLOR", "1", true);
31+
setenv("PY_COLORS", "0", true);
2932

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

0 commit comments

Comments
 (0)