We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e91ce4 commit 731f2e3Copy full SHA for 731f2e3
Lib/test/test__colorize.py
@@ -168,7 +168,7 @@ def test_colorized_detection_checks_for_file(self):
168
169
# The documentation for file.fileno says:
170
# > An OSError is raised if the IO object does not use a file descriptor.
171
- # See https://github.com/python/cpython/issues/141570
+ # gh-141570: Check OSError is caught and handled
172
with unittest.mock.patch("os.isatty", side_effect=ZeroDivisionError):
173
file = unittest.mock.MagicMock()
174
file.fileno.side_effect = OSError
0 commit comments