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

Method test_pathnames

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

Source from the content-addressed store, hash-verified

1668 os_helper.rmtree(tempdir)
1669
1670 def test_pathnames(self):
1671 self._test_pathname("foo")
1672 self._test_pathname(os.path.join("foo", ".", "bar"))
1673 self._test_pathname(os.path.join("foo", "..", "bar"))
1674 self._test_pathname(os.path.join(".", "foo"))
1675 self._test_pathname(os.path.join(".", "foo", "."))
1676 self._test_pathname(os.path.join(".", "foo", ".", "bar"))
1677 self._test_pathname(os.path.join(".", "foo", "..", "bar"))
1678 self._test_pathname(os.path.join(".", "foo", "..", "bar"))
1679 self._test_pathname(os.path.join("..", "foo"))
1680 self._test_pathname(os.path.join("..", "foo", ".."))
1681 self._test_pathname(os.path.join("..", "foo", ".", "bar"))
1682 self._test_pathname(os.path.join("..", "foo", "..", "bar"))
1683
1684 self._test_pathname("foo" + os.sep + os.sep + "bar")
1685 self._test_pathname("foo" + os.sep + os.sep, "foo", dir=True)
1686
1687 def test_abs_pathnames(self):
1688 if sys.platform == "win32":

Callers

nothing calls this directly

Calls 2

_test_pathnameMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected