skip the extractall test on platforms where os.symlink is not available.

This commit is contained in:
Senthil Kumaran 2011-04-28 17:00:19 +08:00
parent 011525ee92
commit f3eb7d3454
1 changed files with 1 additions and 0 deletions

View File

@ -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")