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

Method test_symlink_size

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

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 6

gettarinfoMethod · 0.80
joinMethod · 0.45
openMethod · 0.45
assertEqualMethod · 0.45
closeMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected