Skip to content

Commit 00280b6

Browse files
committed
fixup! fix tests on non-DEBUG platforms
1 parent 308036a commit 00280b6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/test/test_crossinterp.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,6 +1528,10 @@ def test_capture_exception_invalid_format(self, exc_lines):
15281528
self.assertEqual(captured.formatted, "ValueError: ")
15291529
self.assertEqual(captured.errdisplay, "".join(exc_lines))
15301530

1531+
@support.skipUnless(
1532+
support.Py_DEBUG,
1533+
"printing subinterpreter unraisable exceptions requires DEBUG mode",
1534+
)
15311535
def test_capture_exception_unraisable_exception(self):
15321536
formatter = lambda self: 1
15331537
with support.catch_unraisable_exception() as cm:

0 commit comments

Comments
 (0)