[New-bugs-announce] [issue11498] test_zipfile.test_unicode_filenames should be skipped of no zlib

Natalia B. Bidart report at bugs.python.org
Mon Mar 14 16:39:46 CET 2011


New submission from Natalia B. Bidart <nataliabidart at gmail.com>:

When running the test suite, if zlib is not available, we get this failure:

[1/1] test_zipfile
test test_zipfile failed -- Traceback (most recent call last):
  File "/home/nessita/pycon/sprint/cpython/Lib/test/test_zipfile.py", line 498, in test_unicode_filenames
    zipfp.open(name).close()
  File "/home/nessita/pycon/sprint/cpython/Lib/zipfile.py", line 978, in open
    close_fileobj=not self._filePassed)
  File "/home/nessita/pycon/sprint/cpython/Lib/zipfile.py", line 487, in __init__
    self._decompressor = zlib.decompressobj(-15)
AttributeError: 'NoneType' object has no attribute 'decompressobj'
1 test failed:
    test_zipfile

----------
components: Tests
messages: 130831
nosy: nessita
priority: normal
severity: normal
status: open
title: test_zipfile.test_unicode_filenames should be skipped of no zlib
type: crash
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11498>
_______________________________________


More information about the New-bugs-announce mailing list