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

Method test_realpath_relative

Lib/test/test_posixpath.py:593–598  ·  view source on GitHub ↗
(self, kwargs)

Source from the content-addressed store, hash-verified

591 @skip_if_ABSTFN_contains_backslash
592 @_parameterize({}, {'strict': ALLOW_MISSING})
593 def test_realpath_relative(self, kwargs):
594 try:
595 os.symlink(posixpath.relpath(ABSTFN+"1"), ABSTFN)
596 self.assertEqual(realpath(ABSTFN, **kwargs), ABSTFN+"1")
597 finally:
598 os_helper.unlink(ABSTFN)
599
600 @os_helper.skip_unless_symlink
601 @skip_if_ABSTFN_contains_backslash

Callers

nothing calls this directly

Calls 3

realpathFunction · 0.90
assertEqualMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected