We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2542256 commit a45521fCopy full SHA for a45521f
Lib/test/test_pdb.py
@@ -4291,6 +4291,14 @@ def test_quit(self):
4291
stdout, stderr = self._run_script(script, commands)
4292
self.assertIn("2", stdout)
4293
self.assertIn("Quit anyway", stdout)
4294
+ # Closing stdin will quit the debugger anyway so we need to confirm
4295
+ # it's the quit command that does the job
4296
+ # call/return event will print --Call-- and --Return--
4297
+ self.assertNotIn("--", stdout)
4298
+ # Normal exit should not print anything to stderr
4299
+ self.assertEqual(stderr, "")
4300
+ # The quit prompt should be printed exactly twice
4301
+ self.assertEqual(stdout.count("Quit anyway"), 2)
4302
4303
4304
@support.requires_subprocess()
0 commit comments