Commit 3b0b4ff1 authored by Mark Dickinson's avatar Mark Dickinson

Fix test_gzip failure on OS X. The failure was a result of trying to fflush

a file that wasn't open for writing.  Patch by Antoine Pitrou.
parent 06a7e206
......@@ -362,7 +362,7 @@ class GzipFile(io.BufferedIOBase):
if self.mode == WRITE:
# Ensure the compressor's buffer is flushed
self.fileobj.write(self.compress.flush(zlib_mode))
self.fileobj.flush()
self.fileobj.flush()
def fileno(self):
"""Invoke the underlying file object's fileno() method.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment