From: Senthil Kumaran Date: Thu, 28 Apr 2011 09:05:55 +0000 (+0800) Subject: skip the extractall test on platforms where os.symlink is not available. X-Git-Tag: v3.2.1b1~60^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3bdcf4ffd51a9cf8c066d9f815c3bf650a94dbb;p=thirdparty%2FPython%2Fcpython.git skip the extractall test on platforms where os.symlink is not available. --- diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index 487f28f62236..a086c635eddc 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -249,6 +249,7 @@ 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).