Skip to content

Commit 731f2e3

Browse files
authored
Update Lib/test/test__colorize.py
1 parent 1e91ce4 commit 731f2e3

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
@@ -168,7 +168,7 @@ def test_colorized_detection_checks_for_file(self):
168168

169169
# The documentation for file.fileno says:
170170
# > An OSError is raised if the IO object does not use a file descriptor.
171-
# See https://github.com/python/cpython/issues/141570
171+
# gh-141570: Check OSError is caught and handled
172172
with unittest.mock.patch("os.isatty", side_effect=ZeroDivisionError):
173173
file = unittest.mock.MagicMock()
174174
file.fileno.side_effect = OSError

0 commit comments

Comments
 (0)