summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gzip.py
Commit message (Collapse)AuthorAgeFilesLines
* #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.