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

Method _create_missing_dir_link

Lib/test/test_os.py:3123–3131  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

3121 self.check_stat(self.filelink, self.filelink_target)
3122
3123 def _create_missing_dir_link(self):
3124 'Create a "directory" link to a non-existent target'
3125 linkname = self.missing_link
3126 if os.path.lexists(linkname):
3127 os.remove(linkname)
3128 target = r'c:\\target does not exist.29r3c740'
3129 assert not os.path.exists(target)
3130 target_is_dir = True
3131 os.symlink(target, linkname, target_is_dir)
3132
3133 def test_remove_directory_link_to_missing_target(self):
3134 self._create_missing_dir_link()

Calls 3

lexistsMethod · 0.45
removeMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected