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

Skip to content

Commit f108f82

Browse files
committed
Wrap the testskip decorator for the proper test to resolve bb failure.
1 parent 8b8e7f4 commit f108f82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_tarfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ 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")
253252
def test_extractall(self):
254253
# Test if extractall() correctly restores directory permissions
255254
# and times (see issue1735).
@@ -679,6 +678,7 @@ def exclude(name):
679678
finally:
680679
shutil.rmtree(tempdir)
681680

681+
@unittest.skipUnless(hasattr(os,'symlink'), "needs os.symlink")
682682
def test_extractall_symlinks(self):
683683
# Test if extractall works properly when tarfile contains symlinks
684684
tempdir = os.path.join(TEMPDIR, "testsymlinks")

0 commit comments

Comments
 (0)