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

Method test_checkline_after_reset

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

Source from the content-addressed store, hash-verified

4767 self.assertEqual(db.checkline(os_helper.TESTFN, 1), 1)
4768
4769 def test_checkline_after_reset(self):
4770 with open(os_helper.TESTFN, "w") as f:
4771 f.write("print(123)")
4772 db = pdb.Pdb()
4773 db.reset()
4774 self.assertEqual(db.checkline(os_helper.TESTFN, 1), 1)
4775
4776 def test_checkline_is_not_executable(self):
4777 # Test for comments, docstrings and empty lines

Callers

nothing calls this directly

Calls 5

resetMethod · 0.95
checklineMethod · 0.95
openFunction · 0.50
writeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected