Skip to content

Commit bbce6f6

Browse files
committed
Assert on success return code
1 parent e357efc commit bbce6f6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_repl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ def test_pythonstartup_failure(self, startup_code, expected_error):
480480
custom=True)
481481
p.stdin.write("print('user code', 'executed')\n")
482482
output = kill_python(p)
483+
self.assertEqual(p.returncode, 0)
483484

484485
tb_hint = f'File "{startup_env["PYTHONSTARTUP"]}", line 1'
485486
self.assertIn(tb_hint, output)

0 commit comments

Comments
 (0)