summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-04-29 22:06:28 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2011-04-29 22:06:28 (GMT)
commitf108f8258e381c9623a0deb6a61a0c076eefc2d6 (patch)
treeaf9c860ff95724e59f39bfc00dac191dfc295490
parent8b8e7f467f960390d0d7be2bd6094a4b43fe4091 (diff)
downloadcpython-f108f8258e381c9623a0deb6a61a0c076eefc2d6.zip
cpython-f108f8258e381c9623a0deb6a61a0c076eefc2d6.tar.gz
cpython-f108f8258e381c9623a0deb6a61a0c076eefc2d6.tar.bz2
Wrap the testskip decorator for the proper test to resolve bb failure.
-rw-r--r--Lib/test/test_tarfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py
index a086c63..6c7db95 100644
--- a/Lib/test/test_tarfile.py
+++ b/Lib/test/test_tarfile.py
@@ -249,7 +249,6 @@ class MiscReadTest(ReadTest):
data = open(os.path.join(TEMPDIR, "ustar/symtype"), "rb").read()
self.assertEqual(md5sum(data), md5_regtype)
- @unittest.skipUnless(hasattr(os,'symlink'), "needs os.symlink")
def test_extractall(self):
# Test if extractall() correctly restores directory permissions
# and times (see issue1735).
@@ -679,6 +678,7 @@ class WriteTest(WriteTestBase):
finally:
shutil.rmtree(tempdir)
+ @unittest.skipUnless(hasattr(os,'symlink'), "needs os.symlink")
def test_extractall_symlinks(self):
# Test if extractall works properly when tarfile contains symlinks
tempdir = os.path.join(TEMPDIR, "testsymlinks")