summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gzip.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed the test of issue #13664 on platforms without unicode filenames support.Serhiy Storchaka2014-10-131-0/+4
|
* Issue #13664: GzipFile now supports non-ascii Unicode filenames.Serhiy Storchaka2014-10-121-0/+11
|
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-1/+0
| | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface.
* backout 214d8909513d for regressions (#1159051)Benjamin Peterson2013-05-111-17/+0
|
* Close #17666: Fix reading gzip files with an extra field.Serhiy Storchaka2013-04-081-0/+7
|
* Issue #1159051: GzipFile now raises EOFError when reading a corrupted fileSerhiy Storchaka2013-01-221-0/+18
| | | | | with truncated header or footer. Added tests for reading truncated gzip and bzip2 files.
* Issue #5148: Ignore 'U' in mode given to gzip.open() and gzip.GzipFile().Nadeem Vawda2012-10-211-0/+7
|
* Issue #13781: Fix GzipFile to work with os.fdopen()'d file objects.Nadeem Vawda2012-01-181-0/+8
|
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
* Merged revisions 85400 via svnmerge fromBrian Curtin2010-10-131-117/+105
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85400 | brian.curtin | 2010-10-12 21:21:42 -0500 (Tue, 12 Oct 2010) | 2 lines Implement #7944. Use `with` throughout the test suite. ........
* Merged revisions 85291 via svnmerge fromAntoine Pitrou2010-10-061-0/+22
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85291 | antoine.pitrou | 2010-10-06 23:21:18 +0200 (mer., 06 oct. 2010) | 4 lines Issue #9759: GzipFile now raises ValueError when an operation is attempted after the file is closed. Patch by Jeffrey Finkelstein. ........
* #7092: Silence more py3k warnings. Patch by Florent Xicluna.Ezio Melotti2010-02-031-2/+2
|
* Issue #2846: Add support for gzip.GzipFile reading zero-padded files.Antoine Pitrou2010-01-131-0/+12
| | | | Patch by Brian Curtin.
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-2/+2
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-2/+2
| | | | Patch by flox
* Issue #7471: Improve the performance of GzipFile's buffering mechanism,Antoine Pitrou2010-01-031-0/+11
| | | | | and make it implement the `io.BufferedIOBase` ABC to allow for further speedups by wrapping it in an `io.BufferedReader`. Patch by Nir Aides.
* #6026 - fix tests that failed without zlibEzio Melotti2009-09-121-2/+1
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-3/+3
|
* Issue #3860: GzipFile and BZ2File now support the context manager protocol.Antoine Pitrou2009-01-101-1/+21
|
* Issue #4272: Add an optional argument to the GzipFile constructor to ↵Antoine Pitrou2009-01-041-0/+62
| | | | override the timestamp in the gzip stream.
* #2959: allow multiple close() calls for GzipFile.Georg Brandl2008-05-251-3/+6
|
* Remove the test file before writing it in case there is no write permission.Neal Norwitz2008-04-101-5/+2
| | | | | | This might help fix some of the failures on Windows box(es). It doesn't hurt either way and ensure the tests are a little more self contained (ie have less assumptions).
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+1
|
* Patch #1647484: Renamed GzipFile's filename attribute to name. TheLars Gustäbel2007-02-131-0/+7
| | | | | filename attribute is still accessible as a property that emits a DeprecationWarning.
* Whitespace normalization.Tim Peters2007-01-301-1/+1
|
* Patch #1355023: support whence argument for GzipFile.seek.Martin v. Löwis2006-11-121-0/+11
|
* [Bug #1074261, patch #1074381] Restrict the size of chunks read from the ↵Andrew M. Kuchling2005-06-091-0/+23
| | | | file in order to avoid overflow or huge memory consumption. Patch by Mark Eichin
* Convert gzip test suite to use unittestAndrew M. Kuchling2005-06-091-74/+110
|
* SF bug #999776, zlib home page wrongNeal Norwitz2004-07-291-1/+1
| | | | Backport candidate.
* Added a new fileno() method. ZODB's repozo.py wants this so it canTim Peters2004-07-271-1/+9
| | | | apply os.fsync() to the GzipFile backup files it creates.
* Massive changes from SF 589982 (tempfile.py rewrite, by ZackGuido van Rossum2002-08-091-3/+3
| | | | | Weinberg). This changes all uses of deprecated tempfile functions to the recommended ones.
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-301-1/+1
| | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
* force gzip module to open files using 'b'inary mode.Skip Montanaro2002-05-231-1/+5
| | | | closes patch #536278.
* Whitespace normalization.Tim Peters2001-08-091-1/+1
|
* Patch #448474: Add support for tell() and seek() to gzip.GzipFile.Martin v. Löwis2001-08-091-0/+24
|
* Marc-Andre must not have run these tests -- they used verify() butGuido van Rossum2001-01-171-2/+3
| | | | | didn't import it. Also got rid of some inconsistent spaces inside parentheses in test_gzip.py.
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-3/+3
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-3/+2
|
* Exercise .readline() and .readlines(). More data is written to theAndrew M. Kuchling2000-07-291-4/+28
| | | | test file, too, so the methods have more work to do.
* Use binary mode for all gzip files we open.Guido van Rossum1999-04-071-4/+4
|
* Added a simple test suite for gzip. It simply opens a temp file,Andrew M. Kuchling1999-03-251-0/+30
writes a chunk of compressed data, closes it, writes another chunk, and reads the contents back to verify that they are the same.