Commit fcec8bc2 authored by Senthil Kumaran's avatar Senthil Kumaran

Wrap the testskip decorator for the proper test to resolve bb failure.

parent f867c0ba
...@@ -249,7 +249,6 @@ class MiscReadTest(ReadTest): ...@@ -249,7 +249,6 @@ class MiscReadTest(ReadTest):
data = open(os.path.join(TEMPDIR, "ustar/symtype"), "rb").read() data = open(os.path.join(TEMPDIR, "ustar/symtype"), "rb").read()
self.assertEqual(md5sum(data), md5_regtype) self.assertEqual(md5sum(data), md5_regtype)
@unittest.skipUnless(hasattr(os,'symlink'), "needs os.symlink")
def test_extractall(self): def test_extractall(self):
# Test if extractall() correctly restores directory permissions # Test if extractall() correctly restores directory permissions
# and times (see issue1735). # and times (see issue1735).
...@@ -679,6 +678,7 @@ class WriteTest(WriteTestBase): ...@@ -679,6 +678,7 @@ class WriteTest(WriteTestBase):
finally: finally:
shutil.rmtree(tempdir) shutil.rmtree(tempdir)
@unittest.skipUnless(hasattr(os,'symlink'), "needs os.symlink")
def test_extractall_symlinks(self): def test_extractall_symlinks(self):
# Test if extractall works properly when tarfile contains symlinks # Test if extractall works properly when tarfile contains symlinks
tempdir = os.path.join(TEMPDIR, "testsymlinks") tempdir = os.path.join(TEMPDIR, "testsymlinks")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment