MCPcopy Create free account
hub / github.com/python/cpython / tearDown

Method tearDown

Lib/test/test_os/test_windows.py:256–262  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

254 assert not os.path.exists(self.missing_link)
255
256 def tearDown(self):
257 if os.path.exists(self.filelink):
258 os.remove(self.filelink)
259 if os.path.exists(self.dirlink):
260 os.rmdir(self.dirlink)
261 if os.path.lexists(self.missing_link):
262 os.remove(self.missing_link)
263
264 def test_directory_link(self):
265 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