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