Skip to content

Commit 79fb9d2

Browse files
committed
Please let this fix the stupid test. It doesn't repro locally for some reason.
1 parent b32084c commit 79fb9d2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Lib/test/test_capi/test_exceptions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,10 @@ def test_err_writeunraisable(self):
337337
self.assertIsNone(cm.unraisable.err_msg)
338338
self.assertIsNone(cm.unraisable.object)
339339

340+
@force_not_colorized
341+
def test_err_writeunraisable_lines(self):
342+
writeunraisable = _testcapi.err_writeunraisable
343+
340344
with (support.swap_attr(sys, 'unraisablehook', None),
341345
support.captured_stderr() as stderr):
342346
writeunraisable(CustomError('oops!'), hex)
@@ -387,6 +391,10 @@ def test_err_formatunraisable(self):
387391
self.assertIsNone(cm.unraisable.err_msg)
388392
self.assertIsNone(cm.unraisable.object)
389393

394+
@force_not_colorized
395+
def test_err_formatunraisable_lines(self):
396+
formatunraisable = _testcapi.err_formatunraisable
397+
390398
with (support.swap_attr(sys, 'unraisablehook', None),
391399
support.captured_stderr() as stderr):
392400
formatunraisable(CustomError('oops!'), b'Error in %R', [])

0 commit comments

Comments
 (0)