(self)
| 1541 | |
| 1542 | @os_helper.skip_unless_symlink |
| 1543 | def test_symlink_size(self): |
| 1544 | path = os.path.join(TEMPDIR, "symlink") |
| 1545 | os.symlink("link_target", path) |
| 1546 | try: |
| 1547 | tar = tarfile.open(tmpname, self.mode) |
| 1548 | try: |
| 1549 | tarinfo = tar.gettarinfo(path) |
| 1550 | self.assertEqual(tarinfo.size, 0) |
| 1551 | finally: |
| 1552 | tar.close() |
| 1553 | finally: |
| 1554 | os_helper.unlink(path) |
| 1555 | |
| 1556 | def test_add_self(self): |
| 1557 | # Test for #1257255. |
nothing calls this directly
no test coverage detected