From: Senthil Kumaran Date: Thu, 28 Apr 2011 09:00:19 +0000 (+0800) Subject: skip the extractall test on platforms where os.symlink is not available. X-Git-Tag: v2.7.2rc1~103 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3eb7d3454685d8dfe45dcba148b6f115b77431b;p=python 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 ef3bf8b411..f78f9ce03f 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -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")