[New-bugs-announce] [issue16645] Wrong test_extract_hardlink() in test_tarfile.py
Serhiy Storchaka
report at bugs.python.org
Sat Dec 8 19:02:08 CET 2012
New submission from Serhiy Storchaka:
Test test_extract_hardlink() in Lib/test/test_tarfile.py ran 4 times. First time (uncompressed tarfile) it extract symbolic and hard links successfully, but in other 3 times (gzipped, bzipped and lzma'ed tarfile) extracting fails becouse this links already exists (left from first test). The test just ignore this error and other possible errors (error EEXIST raised, but ignored all except ENOENT).
Here is a patch, which adds a right cleanup of extracted links.
----------
components: Tests
files: test_tarfile_test_extract_hardlink.patch
keywords: patch
messages: 177166
nosy: ezio.melotti, michael.foord, pitrou, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Wrong test_extract_hardlink() in test_tarfile.py
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file28260/test_tarfile_test_extract_hardlink.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16645>
_______________________________________
More information about the New-bugs-announce
mailing list