[Python-checkins] cpython (3.1): skip the extractall test on platforms where os.symlink is not available.

senthil.kumaran python-checkins at python.org
Thu Apr 28 11:09:18 CEST 2011


http://hg.python.org/cpython/rev/7c307fd57021
changeset:   69660:7c307fd57021
branch:      3.1
parent:      69654:4f9a289a1f6d
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Thu Apr 28 17:05:55 2011 +0800
summary:
  skip the extractall test on platforms where os.symlink is not available.

files:
  Lib/test/test_tarfile.py |  1 +
  1 files changed, 1 insertions(+), 0 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,6 +249,7 @@
         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).

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


More information about the Python-checkins mailing list