aboutsummaryrefslogtreecommitdiffstats
path: root/archivemail
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2011-06-17 23:14:55 +0200
committerNikolaus Schulz <microschulz@web.de>2011-06-18 00:13:41 +0200
commitf6046b9d698af67b981055d68681392205f8573c (patch)
treed8396676203492a9370c195e0450d4563abd29ff /archivemail
parent39e6a532d0654440679fb5980352615a004f090c (diff)
downloadarchivemail-f6046b9d698af67b981055d68681392205f8573c.tar.gz
archivemail-f6046b9d698af67b981055d68681392205f8573c.tar.bz2
archivemail-f6046b9d698af67b981055d68681392205f8573c.zip
test suite: let FixedGzipFile.seek() pass on what gzip.GzipFile.seek() returned
This fixes test suite failures with Python 2.7. Starting with Python 2.7, gzip.GzipFile is subclassing io.IOBase. The seek() method of io.IOBase differs from file.seek() and the old gzip.GzipFile.seek() in that it returns the new file position, not None. And in Python 2.7, gzip.GzipFile.tell() is inherited from io.IOBase.tell(), which is implemented using its seek() method. FixedGzipFile subclasses gzip.GzipFile and overrides seek(); therefore, this method need be adapted for this change in the interface. Closes: #3314293.
Diffstat (limited to 'archivemail')
0 files changed, 0 insertions, 0 deletions