michael@d2m.at  |  +43 (664) 948-8084
You are here: Home Blog 2007 03 01 testrunner and eggs

testrunner and eggs

by Michael Haubenwallner last modified Jun 18, 2010 11:01 AM

Using the zope.testing.testrunner with eggs is a bit different than with the usual package structure.

Testrunner ignores python .pth files. easy_install e.g. stores the egg folder information into site-packages/easy-install.pth.

Instead of

  ./test.py --package=zope.component

you now need to tell the testrunner where to find the egg directory (which holds the package itself). Something like

  ./test.py --test-path=/usr/lib/python/site-packages/zope.component-...egg

should work as expected.

Filed under: , , ,