Skip to content

Commit bb1558b

Browse files
Fix tests
1 parent 0261fd0 commit bb1558b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_pdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4453,7 +4453,7 @@ def test_quit(self):
44534453
y
44544454
"""
44554455

4456-
stdout, stderr = self._run_script(script, commands)
4456+
stdout, stderr = self._run_script(script, commands, expected_returncode=1)
44574457
self.assertIn("2", stdout)
44584458
self.assertIn("Quit anyway", stdout)
44594459
# Closing stdin will quit the debugger anyway so we need to confirm
@@ -4483,7 +4483,7 @@ def test_quit_after_interact(self):
44834483
y
44844484
"""
44854485

4486-
stdout, stderr = self._run_script(script, commands)
4486+
stdout, stderr = self._run_script(script, commands, expected_returncode=1)
44874487
# Normal exit should not print anything to stderr
44884488
self.assertEqual(stderr, "")
44894489
# The quit prompt should be printed exactly once

0 commit comments

Comments
 (0)