py.test will not start if zlib is not available

Create issue
Issue #95 resolved
Amaury Forgeot d'Arc created an issue

if the zlib module is not available (because it's a custom build of python or pypy), py.test will fail to import the pytest_genscript plugin, and nothing will work.

if zlib is not available, the "--genscript" option cannot work, but this should not prevent py.test from running tests.

I suggest a line like the following: {{{ zlib = py.test.importorskip("zlib") }}}

Comments (2)

  1. Holger Krekel repo owner

    revert 1735 - fix issue95 differently: just shift the offending zlib import (and others) to happen when they are actually needed


  2. Log in to comment