Comment 0 for bug 795124

Revision history for this message
Stefano Rivera (stefanor) wrote : FTBFS with Python 2.7 as default

Binary package hint: archivemail

Test failure with Python2.7 as default. Reported upstream: https://sourceforge.net/tracker/?func=detail&aid=3314293&group_id=49630&atid=456910

======================================================================
ERROR: testOld (__main__.TestMaildirCopy)
archiving an old maildir mailbox with the 'copy' option
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test_archivemail", line 1549, in testOld
    self.verify()
  File "./test_archivemail", line 1275, in verify
    self._verify_archive()
  File "./test_archivemail", line 1337, in _verify_archive
    for msg in mb:
  File "/usr/lib/python2.7/mailbox.py", line 1996, in next
    self._search_start()
  File "/usr/lib/python2.7/mailbox.py", line 2017, in _search_start
    self.fp.seek(pos)
  File "./test_archivemail", line 95, in seek
    gzip.GzipFile.seek(self, offset)
  File "/usr/lib/python2.7/gzip.py", line 423, in seek
    count = offset - self.offset
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

----------------------------------------------------------------------
Ran 95 tests in 3.168s

FAILED (errors=4)