summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tarfile.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch #1338314, Bug #1336623: fix tarfile so it can extractNeal Norwitz2005-10-281-0/+30
| | | | | | REGTYPE directories from tarfiles written by old programs. Will backport.
* Fix SF bug # 1330039, patch # 1331635 from Lars Gustaebel (tarfile maintainer)Neal Norwitz2005-10-201-1/+48
| | | | | | | | | | | | | | Problem: if two files are assigned the same inode number by the filesystem, the second one will be added as a hardlink to the first, which means that the content will be lost. The patched code checks if the file's st_nlink is greater 1. So only for files that actually have several links pointing to them hardlinks will be created, which is what GNU tar does. Will backport.
* Patch #1168594: set sizes of non-regular files to zero. Fixes #1167128.Martin v. Löwis2005-08-271-0/+35
| | | | Will backport to 2.4.
* Patch #918101: Add tarfile open mode r|* for auto-detection of theMartin v. Löwis2005-03-051-2/+27
| | | | stream compression; add, for symmetry reasons, r:* as a synonym of r.
* Patch #1107973: tarfile.ExFileObject iterators.Martin v. Löwis2005-03-031-0/+10
|
* Whitespace normalization.Tim Peters2004-10-251-1/+1
|
* Add test case for bug #1017553Andrew M. Kuchling2004-10-201-0/+9
|
* Flush bz2 data even if nothing had been written so far. Fixes #1013882.Martin v. Löwis2004-08-221-1/+7
| | | | Will backport to 2.3.
* SF #857297 and 916874, improve handling of hard links when extractingNeal Norwitz2004-07-201-0/+21
|
* SF #846659, fix bufsize violation and GNU longname/longlink extensionsNeal Norwitz2004-07-201-1/+90
|
* When calling tarname with an argument (and thus not use testtar.tar) return aBrett Cannon2003-06-121-1/+1
| | | | path for the file in the temp directory for the platform.
* Make creation of temporary file and directory more portable. Also made cleanupBrett Cannon2003-06-121-7/+8
| | | | | | | | | | code use proper functions to get paths. Changed the name of tar file that is searched for to be absolute (i.e., not use os.extsep) since filename is locked in based on name of file in CVS (testtar.tar). Closes bug #731403 .
* Patch #734231: Update RiscOS support. In particular, correctMartin v. Löwis2003-05-101-4/+4
| | | | riscospath.extsep, and use os.extsep throughout.
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-19/+18
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* Get test working if gzip support is not availableNeal Norwitz2003-04-141-1/+2
|
* The filename fix of the previous checkin was complete bogus, the problem is ↵Jack Jansen2003-03-071-3/+3
| | | | elsewhere. Retracting.
* Two fixes to make this test pass on MacOS9:Jack Jansen2003-03-071-4/+4
| | | | | | | - the test was sloppy about filenames: "0-REGTYPE-TEXT" was used where the archive held "/0-REGTYPE-TEXT". - tarfile extracts all files in binary mode, but the test expected to be able to read and compare text files in text mode. Use universal text mode.
* Removed debugging print in test_tarfile.Tim Peters2003-02-191-1/+0
| | | | | In the Windows installer, continued the endless battle to copy over files with new one-shot extensions.
* Whitespace normalization.Tim Peters2003-02-191-0/+1
|
* Actually run these tests from regrtest.py.Neal Norwitz2003-02-171-2/+23
| | | | | | There was no test_main() and the main body was protected by if __name__ == '__main__' so the test didn't happen on import either.
* SF #651082, tarfile module implementation from Lars GustäbelNeal Norwitz2003-01-051-0/+253