(self)
| 1709 | self._test_pathname("///foo", "foo") |
| 1710 | |
| 1711 | def test_cwd(self): |
| 1712 | # Test adding the current working directory. |
| 1713 | with os_helper.change_cwd(TEMPDIR): |
| 1714 | tar = tarfile.open(tmpname, self.mode) |
| 1715 | try: |
| 1716 | tar.add(".") |
| 1717 | finally: |
| 1718 | tar.close() |
| 1719 | |
| 1720 | tar = tarfile.open(tmpname, "r") |
| 1721 | try: |
| 1722 | for t in tar: |
| 1723 | if t.name != ".": |
| 1724 | self.assertStartsWith(t.name, "./") |
| 1725 | finally: |
| 1726 | tar.close() |
| 1727 | |
| 1728 | def test_open_nonwritable_fileobj(self): |
| 1729 | for exctype in OSError, EOFError, RuntimeError: |
nothing calls this directly
no test coverage detected