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

Method test_blocks_at_first_code_line

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

Source from the content-addressed store, hash-verified

4245 self.assertIn(f"pdb: error: unrecognized arguments: --spam", stderr.split('\n')[1])
4246
4247 def test_blocks_at_first_code_line(self):
4248 script = """
4249 #This is a comment, on line 2
4250
4251 print("SUCCESS")
4252 """
4253 commands = """
4254 quit
4255 """
4256 stdout, stderr = self.run_pdb_module(script, commands)
4257 self.assertTrue(any("__main__.py(4)<module>()"
4258 in l for l in stdout.splitlines()), stdout)
4259
4260 def test_file_modified_after_execution(self):
4261 script = """

Callers

nothing calls this directly

Calls 4

run_pdb_moduleMethod · 0.95
assertTrueMethod · 0.80
anyFunction · 0.50
splitlinesMethod · 0.45

Tested by

no test coverage detected