[issue12678] test_packaging and test_distutils failures under Windows

Éric Araujo report at bugs.python.org
Fri Aug 19 17:59:44 CEST 2011


Éric Araujo <merwok at netwok.org> added the comment:

I don’t understand this part:

Traceback (most recent call last):
  File "distutils\tests\test_sdist.py", line 385, in test_manual_manifest
    archive = tarfile.open(archive_name)
  File "tarfile.py", line 1736, in open
    return func(name, "r", fileobj, **kwargs)
  File "tarfile.py", line 1806, in gzopen
    fileobj.close()
AttributeError: 'NoneType' object has no attribute 'close'

The code is protected by a skipUnless(ZLIB_SUPPORT), so how can the tarfile object be None?

----------

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


More information about the Python-bugs-list mailing list