MCPcopy Index your code
hub / github.com/python/cpython / test_issue26053

Method test_issue26053

Lib/test/test_pdb.py:3933–3945  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3931 self.assertEqual(stderr.count("ast.literal_eval('')"), 1)
3932
3933 def test_issue26053(self):
3934 # run command of pdb prompt echoes the correct args
3935 script = "print('hello')"
3936 commands = """
3937 continue
3938 run a b c
3939 run d e f
3940 quit
3941 """
3942 stdout, stderr = self.run_pdb_script(script, commands)
3943 res = '\n'.join([x.strip() for x in stdout.splitlines()])
3944 self.assertRegex(res, "Restarting .* with arguments:\na b c")
3945 self.assertRegex(res, "Restarting .* with arguments:\nd e f")
3946
3947 def test_issue58956(self):
3948 # Set a breakpoint in a function that already exists on the call stack

Callers

nothing calls this directly

Calls 5

run_pdb_scriptMethod · 0.95
assertRegexMethod · 0.80
joinMethod · 0.45
stripMethod · 0.45
splitlinesMethod · 0.45

Tested by

no test coverage detected