Ezio Melotti
07f24c50e0
#7944 : close files explicitly in test_tarfile (backport d560eece0857).
2016-01-13 22:21:21 +02:00
Ezio Melotti
8861b291f2
Convert test_tarfile to ASCII (backport c1ed490bd266).
2016-01-13 19:36:49 +02:00
Serhiy Storchaka
7c7b4b5d86
Backport support.change_cwd() and use it in tests.
2015-09-06 14:16:18 +03:00
Lars Gustäbel
518602ab11
Issue #24259 : tarfile now raises a ReadError if an archive is truncated inside a data segment.
2015-07-06 09:23:04 +02:00
Lars Gustäbel
d048003d90
Issue #24514 : tarfile now tolerates number fields consisting of only whitespace.
2015-07-02 19:37:08 +02:00
Serhiy Storchaka
7cc3b0aefb
Backout 308f3c1e36d3. This change (issue21044) does not need to be merged on
...
2.7, as the os.fdopen sets the name attribute to '<fdopen>' and not to the fd.
2014-07-22 10:39:59 +03:00
Serhiy Storchaka
e7829bdf12
Issue 21044: tarfile.open() now handles fileobj with an integer 'name'
...
attribute. Based on patch by Martin Panter.
2014-07-16 23:58:12 +03:00
Serhiy Storchaka
cfc2c7bb86
Issue #19920 : Added tests for TarFile.list(). Based on patch by Vajrasky Kok.
2014-02-05 20:55:13 +02:00
Serhiy Storchaka
7a278da4ee
Issue #20243 : TarFile no longer raise ReadError when opened in write mode.
2014-01-18 16:14:00 +02:00
Serhiy Storchaka
cdf1ebd8fe
Backported test for issue #20238 .
2014-01-18 15:54:32 +02:00
Serhiy Storchaka
75ba21a77d
Issue #20245 : The open functions in the tarfile module now correctly handle empty mode.
2014-01-18 15:35:19 +02:00
Serhiy Storchaka
d804f53679
Backported test for the open of non-existent tarfile.
2014-01-13 19:08:51 +02:00
Zachary Ware
1f70221b86
Issue #19572 : More silently skipped tests explicitly skipped.
2013-12-10 14:09:20 -06:00
Serhiy Storchaka
ce34ba6e3c
Issue #16601 : Restarting iteration over tarfile no more continues from where
...
it left off. Patch by Michael Birtwell.
2013-05-09 14:22:05 +03:00
Serhiy Storchaka
421489f8a6
Issue #16645 : Fix hardlink extracting test for tarfile.
2012-12-30 20:15:10 +02:00
Serhiy Storchaka
8876145fab
Issue #16793 . Replace deprecated unittest asserts with modern counterparts.
2012-12-28 00:32:19 +02:00
Lars Gustäbel
231d474a7b
Issue #14160 : TarFile.extractfile() failed to resolve symbolic links when
...
the links were not located in an archive subdirectory.
2012-04-24 22:42:08 +02:00
Lars Gustäbel
7d4d074c99
Issue #13639 : Accept unicode filenames in tarfile.open(mode="w|gz").
...
Passing a unicode filename to tarfile.open() along with mode "w|gz" failed
with a UnicodeError because the filename was not encoded properly before being
written to the gzipped stream in the FNAME extra field.
2011-12-21 19:27:50 +01:00
Lars Gustäbel
9a38863d8c
Correctly detect bzip2 compressed streams with blocksizes other than 900k.
2011-12-06 13:07:09 +01:00
Senthil Kumaran
4dd89ce6bf
Fix closes issue #12088 - fixes the tarfile.extractall issue when the
...
symlinks/hardlink was broken. It handles now in a graceful manner (No exception
is raised, behavior similar GNU tar).
2011-05-17 10:12:18 +08:00
Senthil Kumaran
f3eb7d3454
skip the extractall test on platforms where os.symlink is not available.
2011-04-28 17:00:19 +08:00
Senthil Kumaran
011525ee92
Fix closes issue10761: tarfile.extractall failure when symlinked files are present.
2011-04-28 15:30:31 +08:00
Lars Gustäbel
4da7d410b3
Issue #8741 : Fixed the TarFile.makelink() method that is responsible
...
for extracting symbolic and hard link entries as regular files as a
work-around on platforms that do not support filesystem links.
This stopped working reliably after a change in r74571. I also added
a few tests for this functionality.
2010-06-03 12:34:14 +00:00
Lars Gustäbel
2ee9c6fa50
Issue #8833 : tarfile created hard link entries with a size
...
field != 0 by mistake. The associated testcase did not
expose this bug because it was broken too.
2010-06-03 09:56:22 +00:00
Lars Gustäbel
5c4c4619b0
Issue #8464 : tarfile.open(name, mode="w|") no longer creates
...
files with execute permissions set.
2010-04-29 15:23:38 +00:00