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

Method test_symlink_dir_fd

Lib/test/test_posix.py:1770–1774  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1768
1769 @unittest.skipUnless(os.symlink in os.supports_dir_fd, "test needs dir_fd support in os.symlink()")
1770 def test_symlink_dir_fd(self):
1771 with self.prepare() as (dir_fd, name, fullname):
1772 posix.symlink('symlink', name, dir_fd=dir_fd)
1773 self.addCleanup(posix.unlink, fullname)
1774 self.assertEqual(posix.readlink(fullname), 'symlink')
1775
1776 @unittest.skipUnless(os.unlink in os.supports_dir_fd, "test needs dir_fd support in os.unlink()")
1777 def test_unlink_dir_fd(self):

Callers

nothing calls this directly

Calls 4

prepareMethod · 0.95
addCleanupMethod · 0.80
assertEqualMethod · 0.45
readlinkMethod · 0.45

Tested by

no test coverage detected