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

Method tearDown

Lib/test/test_os.py:3101–3107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3099 assert not os.path.exists(self.missing_link)
3100
3101 def tearDown(self):
3102 if os.path.exists(self.filelink):
3103 os.remove(self.filelink)
3104 if os.path.exists(self.dirlink):
3105 os.rmdir(self.dirlink)
3106 if os.path.lexists(self.missing_link):
3107 os.remove(self.missing_link)
3108
3109 def test_directory_link(self):
3110 os.symlink(self.dirlink_target, self.dirlink)

Callers

nothing calls this directly

Calls 4

rmdirMethod · 0.80
existsMethod · 0.45
removeMethod · 0.45
lexistsMethod · 0.45

Tested by

no test coverage detected