From: Senthil Kumaran Date: Fri, 29 Apr 2011 22:06:28 +0000 (+0800) Subject: Wrap the testskip decorator for the proper test to resolve bb failure. X-Git-Tag: v3.2.1b1~50^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f108f8258e381c9623a0deb6a61a0c076eefc2d6;p=thirdparty%2FPython%2Fcpython.git Wrap the testskip decorator for the proper test to resolve bb failure. --- diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index a086c635eddc..6c7db9535f50 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")