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

Method test_empty_file

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

Source from the content-addressed store, hash-verified

4647 self.assertIn('-> def func():', stdout, "stack entry not found")
4648
4649 def test_empty_file(self):
4650 script = ''
4651 commands = 'q\n'
4652 # We check that pdb stopped at line 0, but anything reasonable
4653 # is acceptable here, as long as it does not halt
4654 stdout, _ = self.run_pdb_script(script, commands)
4655 self.assertIn('main.py(0)', stdout)
4656 stdout, _ = self.run_pdb_module(script, commands)
4657 self.assertIn('__main__.py(0)', stdout)
4658
4659 def test_non_utf8_encoding(self):
4660 script_dir = os.path.join(os.path.dirname(__file__), 'encoded_modules')

Callers

nothing calls this directly

Calls 3

run_pdb_scriptMethod · 0.95
run_pdb_moduleMethod · 0.95
assertInMethod · 0.80

Tested by

no test coverage detected