mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-124703: Add extra checks for pdb quit test (#130286)
This commit is contained in:
parent
bcc9a5dddb
commit
8207454bc0
1 changed files with 8 additions and 0 deletions
|
@ -4299,6 +4299,14 @@ class PdbTestInline(unittest.TestCase):
|
|||
stdout, stderr = self._run_script(script, commands)
|
||||
self.assertIn("2", stdout)
|
||||
self.assertIn("Quit anyway", stdout)
|
||||
# Closing stdin will quit the debugger anyway so we need to confirm
|
||||
# it's the quit command that does the job
|
||||
# call/return event will print --Call-- and --Return--
|
||||
self.assertNotIn("--", stdout)
|
||||
# Normal exit should not print anything to stderr
|
||||
self.assertEqual(stderr, "")
|
||||
# The quit prompt should be printed exactly twice
|
||||
self.assertEqual(stdout.count("Quit anyway"), 2)
|
||||
|
||||
|
||||
@support.requires_subprocess()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue