From f3eb7d3454685d8dfe45dcba148b6f115b77431b Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Thu, 28 Apr 2011 17:00:19 +0800 Subject: [PATCH] skip the extractall test on platforms where os.symlink is not available. --- Lib/test/test_tarfile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index ef3bf8b4110..f78f9ce03f5 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")