Skip to content

Commit 36a91ad

Browse files
committed
Examine rc to make sure it's not a crash
1 parent d95a3d4 commit 36a91ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_traceback.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ def bad_import(name, *args, **kwargs):
538538
raise RuntimeError("should not crash")
539539
""")
540540
rc, stdout, stderr = assert_python_failure('-c', code)
541+
self.assertEqual(rc, 1)
541542
expected = [b'Exception ignored in the internal traceback machinery:',
542543
b'AttributeError: \'int\' object has no attribute \'_print_exception_bltin\'',
543544
b'Traceback (most recent call last):',

0 commit comments

Comments
 (0)