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

Method test_cwd

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

Source from the content-addressed store, hash-verified

103 self.assertTrue(os.path.exists(self.cache_path))
104
105 def test_cwd(self):
106 with os_helper.change_cwd(self.directory):
107 py_compile.compile(os.path.basename(self.source_path),
108 os.path.basename(self.pyc_path))
109 self.assertTrue(os.path.exists(self.pyc_path))
110 self.assertFalse(os.path.exists(self.cache_path))
111
112 @unittest.expectedFailureIf(sys.platform == "darwin" and int(__import__("platform").release().split(".")[0]) < 20, "TODO: RUSTPYTHON")
113 def test_relative_path(self):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected