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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3eb7d3454685d8dfe45dcba148b6f115b77431b;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 ef3bf8b4110f..f78f9ce03f5c 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")