py.test will not start if zlib is not available

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. Log in to comment