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

Method test_realpath_relative

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

Source from the content-addressed store, hash-verified

608 @skip_if_ABSTFN_contains_backslash
609 @_parameterize({}, {'strict': ALL_BUT_LAST}, {'strict': ALLOW_MISSING})
610 def test_realpath_relative(self, kwargs):
611 try:
612 os.symlink(posixpath.relpath(ABSTFN+"1"), ABSTFN)
613 self.assertEqual(realpath(ABSTFN, **kwargs), ABSTFN+"1")
614 finally:
615 os_helper.unlink(ABSTFN)
616
617 @os_helper.skip_unless_symlink
618 @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