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

Method test_compile_dir_pathlike

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

Source from the content-addressed store, hash-verified

230 self.assertTrue(os.path.isfile(cached3))
231
232 def test_compile_dir_pathlike(self):
233 self.assertFalse(os.path.isfile(self.bc_path))
234 with support.captured_stdout() as stdout:
235 compileall.compile_dir(FakePath(self.directory))
236 line = stdout.getvalue().splitlines()[0]
237 self.assertRegex(line, r'Listing ([^WindowsPath|PosixPath].*)')
238 self.assertTrue(os.path.isfile(self.bc_path))
239
240 def test_compile_dir_pathlike_stripdir(self):
241 self.assertFalse(os.path.isfile(self.bc_path))

Callers

nothing calls this directly

Calls 8

FakePathClass · 0.90
assertFalseMethod · 0.80
compile_dirMethod · 0.80
assertRegexMethod · 0.80
assertTrueMethod · 0.80
isfileMethod · 0.45
splitlinesMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected