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

Method assertNotCompiled

Lib/test/test_compileall.py:579–581  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

577 self.assertTrue(os.path.exists(path))
578
579 def assertNotCompiled(self, fn):
580 path = importlib.util.cache_from_source(fn)
581 self.assertFalse(os.path.exists(path))
582
583 def test_no_args_compiles_path(self):
584 # Note that -l is implied for the no args case.

Calls 2

assertFalseMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected