]> granicus.if.org Git - python/commitdiff
Wrap the testskip decorator for the proper test to resolve bb failure.
authorSenthil Kumaran <senthil@uthcode.com>
Fri, 29 Apr 2011 22:06:28 +0000 (06:06 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Fri, 29 Apr 2011 22:06:28 +0000 (06:06 +0800)
Lib/test/test_tarfile.py

index a086c635eddc9051dad72de4f490af572a275d36..6c7db9535f5088b1ba158e6d627635cc78d0819c 100644 (file)
@@ -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")