MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_compile_path

Method test_compile_path

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

Source from the content-addressed store, hash-verified

182 self.assertTrue(os.path.isfile(self.bc_path))
183
184 def test_compile_path(self):
185 with test.test_importlib.util.import_state(path=[self.directory]):
186 self.assertTrue(compileall.compile_path(quiet=2))
187
188 with test.test_importlib.util.import_state(path=[self.directory]):
189 self.add_bad_source_file()
190 self.assertFalse(compileall.compile_path(skip_curdir=False,
191 force=True, quiet=2))
192
193 def test_no_pycache_in_non_package(self):
194 # 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