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

Method test_nonexistent_module

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

Source from the content-addressed store, hash-verified

4229 stdout)
4230
4231 def test_nonexistent_module(self):
4232 assert not os.path.exists(os_helper.TESTFN)
4233 stdout, stderr = self._run_pdb(["-m", os_helper.TESTFN], "", expected_returncode=1)
4234 self.assertIn(f"ImportError: No module named {os_helper.TESTFN}", stdout)
4235
4236 def test_dir_as_script(self):
4237 with os_helper.temp_dir() as temp_dir:

Callers

nothing calls this directly

Calls 3

_run_pdbMethod · 0.95
assertInMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected