Skip to content

Commit 748ba6d

Browse files
committed
Mock sys.stdout.fileno() as 1
1 parent 9ddc74f commit 748ba6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test__colorize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_colorized_detection_checks_for_environment_variables(self):
3030
contextlib.nullcontext()) as vt_mock):
3131

3232
isatty_mock.return_value = True
33-
stdout_mock.fileno.return_value = 2
33+
stdout_mock.fileno.return_value = 1
3434
stdout_mock.isatty.return_value = True
3535
stderr_mock.fileno.return_value = 2
3636
stderr_mock.isatty.return_value = True

0 commit comments

Comments
 (0)