summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-04-28 17:00:19 +0800
committerSenthil Kumaran <senthil@uthcode.com>2011-04-28 17:00:19 +0800
commit3aa43f582081e77f6a2e85dec11f7afb80ec19d1 (patch)
tree7c55b9253008d5755036bac55a12ce9764f34834 /Lib
parent9f6162a451978702ef52089d2a1636f5ddf10ece (diff)
downloadcpython-3aa43f582081e77f6a2e85dec11f7afb80ec19d1.tar.gz
skip the extractall test on platforms where os.symlink is not available.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_tarfile.py1
1 files changed, 1 insertions, 0 deletions
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")