[Python-checkins] cpython (2.7): skip the extractall test on platforms where os.symlink is not available.
senthil.kumaran
python-checkins at python.org
Thu Apr 28 11:01:04 CEST 2011
http://hg.python.org/cpython/rev/e19d2e3a3a58
changeset: 69658:e19d2e3a3a58
branch: 2.7
parent: 69653:0c8bc3a0130a
user: Senthil Kumaran <senthil at uthcode.com>
date: Thu Apr 28 17:00:19 2011 +0800
summary:
skip the extractall test on platforms where os.symlink is not available.
files:
Lib/test/test_tarfile.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py
--- a/Lib/test/test_tarfile.py
+++ b/Lib/test/test_tarfile.py
@@ -843,6 +843,7 @@
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")
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list