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

Method test_absolute_path

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

Source from the content-addressed store, hash-verified

74 os.chdir(self.cwd_drive)
75
76 def test_absolute_path(self):
77 py_compile.compile(self.source_path, self.pyc_path)
78 self.assertTrue(os.path.exists(self.pyc_path))
79 self.assertFalse(os.path.exists(self.cache_path))
80
81 def test_do_not_overwrite_symlinks(self):
82 # In the face of a cfile argument being a symlink, bail out.

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected