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

Method test_relative_path

Lib/test/test_py_compile.py:138–142  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 self.assert_cache_path_exists(False)
137
138 def test_relative_path(self):
139 py_compile.compile(os.path.relpath(self.source_path),
140 os.path.relpath(self.pyc_path))
141 self.assertTrue(os.path.exists(self.pyc_path))
142 self.assert_cache_path_exists(False)
143
144 @os_helper.skip_if_dac_override
145 @unittest.skipIf(os.name == 'nt',

Callers

nothing calls this directly

Calls 4

assertTrueMethod · 0.80
compileMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected