Skip to content

Commit 3edc3a8

Browse files
committed
Check the return code in the test.
1 parent add4d33 commit 3edc3a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_atexit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def start_thread():
9797
threading.Thread(target=run).start()
9898
"""
9999

100-
_, stdout, stderr = script_helper.assert_python_ok("-c", textwrap.dedent(source))
100+
return_code, stdout, stderr = script_helper.assert_python_ok("-c", textwrap.dedent(source))
101+
self.assertEqual(return_code, 0)
101102
self.assertEqual(stderr, b"")
102103
self.assertEqual(stdout, b"24\n42\n")
103104

0 commit comments

Comments
 (0)