]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
skip the extractall test on platforms where os.symlink is not available.
authorSenthil Kumaran <senthil@uthcode.com>
Thu, 28 Apr 2011 09:05:55 +0000 (17:05 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Thu, 28 Apr 2011 09:05:55 +0000 (17:05 +0800)
Lib/test/test_tarfile.py

index 487f28f6223687343ae617641efd03ff9360e9ab..a086c635eddc9051dad72de4f490af572a275d36 100644 (file)
@@ -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).