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 <rep...@bugs.python.org>
<http://bugs.python.org/issue16645>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to