Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3bdcf4

Browse files
committed
skip the extractall test on platforms where os.symlink is not available.
1 parent 123932f commit e3bdcf4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_tarfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ def test_extract_hardlink(self):
249249
data = open(os.path.join(TEMPDIR, "ustar/symtype"), "rb").read()
250250
self.assertEqual(md5sum(data), md5_regtype)
251251

252+
@unittest.skipUnless(hasattr(os,'symlink'), "needs os.symlink")
252253
def test_extractall(self):
253254
# Test if extractall() correctly restores directory permissions
254255
# and times (see issue1735).

0 commit comments

Comments
 (0)