(self)
| 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": |
nothing calls this directly
no test coverage detected