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

Method test_compile_path

Lib/test/test_compileall.py:188–195  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

186 self.assertTrue(os.path.isfile(self.bc_path))
187
188 def test_compile_path(self):
189 with test.test_importlib.util.import_state(path=[self.directory]):
190 self.assertTrue(compileall.compile_path(quiet=2))
191
192 with test.test_importlib.util.import_state(path=[self.directory]):
193 self.add_bad_source_file()
194 self.assertFalse(compileall.compile_path(skip_curdir=False,
195 force=True, quiet=2))
196
197 def test_no_pycache_in_non_package(self):
198 # Bug 8563 reported that __pycache__ directories got created by

Callers

nothing calls this directly

Calls 3

add_bad_source_fileMethod · 0.95
assertTrueMethod · 0.80
assertFalseMethod · 0.80

Tested by

no test coverage detected