[Python-checkins] cpython (3.1): Wrap the testskip decorator for the proper test to resolve bb failure.

senthil.kumaran python-checkins at python.org
Sat Apr 30 00:12:39 CEST 2011


http://hg.python.org/cpython/rev/c4a9149d467f
changeset:   69695:c4a9149d467f
branch:      3.1
parent:      69689:80971f71b0d9
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Sat Apr 30 06:06:28 2011 +0800
summary:
  Wrap the testskip decorator for the proper test to resolve bb failure.

files:
  Lib/test/test_tarfile.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py
--- a/Lib/test/test_tarfile.py
+++ b/Lib/test/test_tarfile.py
@@ -249,7 +249,6 @@
         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 @@
         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")

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list