[TIP] Different results when running under coverage

Tim Hatch tim at timhatch.com
Sat Nov 6 19:54:54 PDT 2010


>> TWIGGY_UNDER_TEST=1 python scripts/unittest_main.py -b
...
>> ./scripts/cover-twiggy-tests.sh -b tests.test_integration

Make sure that 'which python' and 'head -n1 `which coverage`' agree.  If
coverage's shebang is different, it might be picking up a different copy
of twiggy via setuptools.

Tim



More information about the testing-in-python mailing list