Thanks to visit codestin.com Credit goes to github.com
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 bcc9a5d commit 8207454Copy full SHA for 8207454
1 file changed
Lib/test/test_pdb.py
@@ -4299,6 +4299,14 @@ def test_quit(self):
4299
stdout, stderr = self._run_script(script, commands)
4300
self.assertIn("2", stdout)
4301
self.assertIn("Quit anyway", stdout)
4302
+ # Closing stdin will quit the debugger anyway so we need to confirm
4303
+ # it's the quit command that does the job
4304
+ # call/return event will print --Call-- and --Return--
4305
+ self.assertNotIn("--", stdout)
4306
+ # Normal exit should not print anything to stderr
4307
+ self.assertEqual(stderr, "")
4308
+ # The quit prompt should be printed exactly twice
4309
+ self.assertEqual(stdout.count("Quit anyway"), 2)
4310
4311
4312
@support.requires_subprocess()
0 commit comments