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

Method test_pathnames

Lib/test/test_tarfile.py:1687–1702  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1685 os_helper.rmtree(tempdir)
1686
1687 def test_pathnames(self):
1688 self._test_pathname("foo")
1689 self._test_pathname(os.path.join("foo", ".", "bar"))
1690 self._test_pathname(os.path.join("foo", "..", "bar"))
1691 self._test_pathname(os.path.join(".", "foo"))
1692 self._test_pathname(os.path.join(".", "foo", "."))
1693 self._test_pathname(os.path.join(".", "foo", ".", "bar"))
1694 self._test_pathname(os.path.join(".", "foo", "..", "bar"))
1695 self._test_pathname(os.path.join(".", "foo", "..", "bar"))
1696 self._test_pathname(os.path.join("..", "foo"))
1697 self._test_pathname(os.path.join("..", "foo", ".."))
1698 self._test_pathname(os.path.join("..", "foo", ".", "bar"))
1699 self._test_pathname(os.path.join("..", "foo", "..", "bar"))
1700
1701 self._test_pathname("foo" + os.sep + os.sep + "bar")
1702 self._test_pathname("foo" + os.sep + os.sep, "foo", dir=True)
1703
1704 def test_abs_pathnames(self):
1705 if sys.platform == "win32":

Callers

nothing calls this directly

Calls 2

_test_pathnameMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected