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

Method test_cwd

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

Source from the content-addressed store, hash-verified

129 self.assert_cache_path_exists(True)
130
131 def test_cwd(self):
132 with os_helper.change_cwd(self.directory):
133 py_compile.compile(os.path.basename(self.source_path),
134 os.path.basename(self.pyc_path))
135 self.assertTrue(os.path.exists(self.pyc_path))
136 self.assert_cache_path_exists(False)
137
138 def test_relative_path(self):
139 py_compile.compile(os.path.relpath(self.source_path),

Callers

nothing calls this directly

Calls 5

assertTrueMethod · 0.80
compileMethod · 0.45
basenameMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected