summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tarfile.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20672: Fixed tests for TarFile.list() on non-UTF-8 locales.Serhiy Storchaka2014-02-191-8/+10
|\
| * Issue #20672: Fixed tests for TarFile.list() on non-UTF-8 locales.Serhiy Storchaka2014-02-191-8/+10
| |
* | Issue #19920: TarFile.list() no longer fails when outputs a listingSerhiy Storchaka2014-02-051-18/+99
|\ \ | |/ | | | | | | containing non-encodable characters. Added tests for TarFile.list(). Based on patch by Vajrasky Kok.
| * Issue #19920: TarFile.list() no longer fails when outputs a listingSerhiy Storchaka2014-02-051-0/+78
| | | | | | | | | | containing non-encodable characters. Added tests for TarFile.list(). Based on patch by Vajrasky Kok.
| * Fix typo.Serhiy Storchaka2014-01-241-1/+1
| |
| * Issue #20384: Fix the test_tarfile test on Windows.Serhiy Storchaka2014-01-241-1/+6
| | | | | | | | On Windows os.open() error message doesn't contain file name.
* | Issue #20243: TarFile no longer raise ReadError when opened in write mode.Serhiy Storchaka2014-01-181-0/+16
|\ \ | |/
| * Issue #20243: TarFile no longer raise ReadError when opened in write mode.Serhiy Storchaka2014-01-181-0/+16
| |
* | Issue #20238: TarFile opened with external fileobj and "w:gz" mode didn'tSerhiy Storchaka2014-01-181-0/+6
|\ \ | |/ | | | | write complete output on close.
| * Issue #20238: TarFile opened with external fileobj and "w:gz" mode didn'tSerhiy Storchaka2014-01-181-0/+6
| | | | | | | | write complete output on close.
* | Issue #20245: The open functions in the tarfile module now correctly handle ↵Serhiy Storchaka2014-01-181-0/+14
|\ \ | |/ | | | | empty mode.
| * Issue #20245: The open functions in the tarfile module now correctly handle ↵Serhiy Storchaka2014-01-181-0/+14
| | | | | | | | empty mode.
| * Test the open of non-exitent tarfile in all modes.Serhiy Storchaka2014-01-131-5/+7
| |
* | Test the open of non-exitent tarfile in all modes.Serhiy Storchaka2014-01-131-5/+7
| |
* | Try to fix test_tarfile under WindowsAntoine Pitrou2013-11-241-1/+1
| |
* | Build a list of supported test tarfiles dynamically for CLI "test" commandSerhiy Storchaka2013-11-241-3/+6
| | | | | | | | tests (issue13477).
* | Issue #13477: Added command line interface to the tarfile module.Serhiy Storchaka2013-11-231-1/+165
| | | | | | | | Original patch by Berker Peksag.
* | Issue #15767: Excise the remaining instances of ModuleNotFoundErrorBrett Cannon2013-07-041-3/+3
| |
* | Issue #18223: Refactor test_tarfile.Serhiy Storchaka2013-06-171-382/+339
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | * Use mixins for generating tests for different compression types. * Make test_tarfile discoverable. * Use more special tests (i.e. assertEqual, assertIs) instead of assertTrue. * Add explicit test skips instead of reporting skipped tests as passed. * Wrap long lines. * Correct a comment for test_hardlink_extraction1. * Add support.requires_gzip. * Replace ImportError by ModuleNotFoundError. and some other minor enhancements.
| * Issue #18223: Refactor test_tarfile.Serhiy Storchaka2013-06-171-380/+337
| | | | | | | | | | | | | | | | | | | | | | | | * Use mixins for generating tests for different compression types. * Make test_tarfile discoverable. * Use more special tests (i.e. assertEqual, assertIs) instead of assertTrue. * Add explicit test skips instead of reporting skipped tests as passed. * Wrap long lines. * Correct a comment for test_hardlink_extraction1. * Add support.requires_gzip. and some other minor enhancements.
* | Issue #16601: Restarting iteration over tarfile no more continues from whereSerhiy Storchaka2013-05-091-0/+8
|\ \ | |/ | | | | it left off. Patch by Michael Birtwell.
| * Issue #16601: Restarting iteration over tarfile no more continues from whereSerhiy Storchaka2013-05-091-0/+8
| | | | | | | | it left off. Patch by Michael Birtwell.
* | Issue #16645: Fix hardlink extracting test for tarfile.Serhiy Storchaka2012-12-301-16/+6
|\ \ | |/
| * Issue #16645: Fix hardlink extracting test for tarfile.Serhiy Storchaka2012-12-301-16/+6
| |\
| | * Issue #16645: Fix hardlink extracting test for tarfile.Serhiy Storchaka2012-12-301-16/+6
| | |
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-6/+6
| | |
* | | Get rig of EnvironmentError (#16705)Andrew Svetlov2012-12-171-2/+2
|/ /
* | Issue #13815: TarFile.extractfile() now returns io.BufferedReader objects.Lars Gustäbel2012-05-051-38/+31
| | | | | | | | The ExFileObject class was removed, some of its code went into _FileInFile.
* | Merge with 3.2: Issue #14160: TarFile.extractfile() failed to resolve symbolicLars Gustäbel2012-04-241-0/+3
|\ \ | |/ | | | | links when the links were not located in an archive subdirectory.
| * Issue #14160: TarFile.extractfile() failed to resolve symbolic linksLars Gustäbel2012-04-241-0/+3
| | | | | | | | when the links were not located in an archive subdirectory.
* | Issue #5689: Add support for lzma compression to the tarfile module.Lars Gustäbel2011-12-101-10/+68
| |
* | Remove no longer needed work-around for bz2 file object support.Lars Gustäbel2011-12-061-0/+3
| |
* | Merge with 3.2: Correctly detect bzip2 compressed streams with blocksizes ↵Lars Gustäbel2011-12-061-4/+18
|\ \ | |/ | | | | other than 900k.
| * Correctly detect bzip2 compressed streams with blocksizes other than 900k.Lars Gustäbel2011-12-061-4/+18
| |
* | Merge with 3.2: Issue #13158: Fix decoding and encoding of base-256 number ↵Lars Gustäbel2011-10-141-1/+23
|\ \ | |/ | | | | | | | | | | | | fields in tarfile. The nti() function that converts a number field from a tar header to a number failed to decode GNU tar specific base-256 fields. I also added support for decoding and encoding negative base-256 number fields.
| * Issue #13158: Fix decoding and encoding of base-256 number fields in tarfile.Lars Gustäbel2011-10-141-1/+23
| | | | | | | | | | | | The nti() function that converts a number field from a tar header to a number failed to decode GNU tar specific base-256 fields. I also added support for decoding and encoding negative base-256 number fields.
* | Issue #12326: don't test the major version of sys.platformVictor Stinner2011-08-171-1/+1
| | | | | | | | | | Use startswith, instead of ==, when testing sys.platform to support new platforms like Linux 3 or OpenBSD 5.
* | Merge with 3.2.Georg Brandl2011-08-131-0/+8
|\ \ | |/
| * Fix #11513: wrong exception handling for the case that GzipFile itself ↵Georg Brandl2011-08-131-0/+8
| | | | | | | | raises an IOError.
* | Issue #12451: Add support.create_empty_file()Victor Stinner2011-06-301-3/+3
| | | | | | | | | | | | | | We don't need to create a temporary buffered binary or text file object just to create an empty file. Replace also os.fdopen(handle).close() by os.close(handle).
* | Replace open(filename, 'rU') by open(filename, 'r')Victor Stinner2011-05-041-1/+1
| | | | | | | | The U flag is no more used (but still accepted for backward compatibility).
* | Wrap the correct test with the skip decorator for the issue10761.Senthil Kumaran2011-04-291-1/+2
|\ \ | |/ | | | | merge from 3.2.
| * merge from 3.1Senthil Kumaran2011-04-291-1/+2
| |\
| | * Wrap the testskip decorator for the proper test to resolve bb failure.Senthil Kumaran2011-04-291-1/+1
| | |
* | | merge from 3.2Senthil Kumaran2011-04-281-0/+1
|\ \ \ | |/ /
| * | merge from 3.1Senthil Kumaran2011-04-281-0/+1
| |\ \ | | |/
| | * skip the extractall test on platforms where os.symlink is not available.Senthil Kumaran2011-04-281-0/+1
| | |
* | | merge from 3.2Senthil Kumaran2011-04-281-0/+28
|\ \ \ | |/ /
| * | merge from 3.1Senthil Kumaran2011-04-281-0/+28
| |\ \ | | |/
| | * Add tests for tarfile extractall feature when with symlinksSenthil Kumaran2011-04-281-0/+27
| | |