Eric Floehr added the comment: I have attached a patch file for test_tarfile.py that uses the attached 'bad.tar' to test this issue.
After applying this test patch, put 'bad.tar' in Lib/test with the name 'issue15858.tar'. This tests Tarfile.next(), but the issue can be seen via the command line interface, which uses .next() under the covers: Pre-patch: $ ./python -m tarfile -l Lib/test/issue15858.tar foo/ Post-patch: $ ./python -m tarfile -l Lib/test/issue15858.tar foo/ foo/a ---------- keywords: +patch nosy: +efloehr Added file: http://bugs.python.org/file34208/test_tarfile.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15858> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com