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

Method _create_missing_dir_link

Lib/test/test_os/test_windows.py:278–286  ·  view source on GitHub ↗

Create a "directory" link to a non-existent target

(self)

Source from the content-addressed store, hash-verified

276 self.check_stat(self.filelink, self.filelink_target)
277
278 def _create_missing_dir_link(self):
279 'Create a "directory" link to a non-existent target'
280 linkname = self.missing_link
281 if os.path.lexists(linkname):
282 os.remove(linkname)
283 target = r'c:\\target does not exist.29r3c740'
284 assert not os.path.exists(target)
285 target_is_dir = True
286 os.symlink(target, linkname, target_is_dir)
287
288 def test_remove_directory_link_to_missing_target(self):
289 self._create_missing_dir_link()

Calls 3

lexistsMethod · 0.45
removeMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected