]> granicus.if.org Git - python/commitdiff
skip the extractall test on platforms where os.symlink is not available.
authorSenthil Kumaran <senthil@uthcode.com>
Thu, 28 Apr 2011 09:00:19 +0000 (17:00 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Thu, 28 Apr 2011 09:00:19 +0000 (17:00 +0800)
Lib/test/test_tarfile.py

index ef3bf8b4110f2eab7d87ddee9034ff0eb3bb8d29..f78f9ce03f5c39fa26dbfdcfe7bc1ead96948a79 100644 (file)
@@ -843,6 +843,7 @@ class WriteTest(WriteTestBase):
         finally:
             os.chdir(cwd)
 
+    @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")