[TIP] figleaf + py.test doesn't work sometimes

Ondrej Certik ondrej at certik.cz
Wed Jul 2 05:25:58 PDT 2008


On Wed, Jul 2, 2008 at 2:04 PM, Ned Batchelder <ned at nedbatchelder.com> wrote:
> I can't set up your test scenario and try it myself, but it sounds
> suspiciously like the Python peephole optimizer is getting in the way.
> Dumping the .pyc files, though shows those two statements  plain and simple,
> either with the e+1 or the original e, so I'm not sure what could be
> affecting the coverage measurement.

I am not sure either. When I find some more time, I'll try to make the
test scenario easier, so that you can reproduce it easily too. Then
we'll know
what's wrong and how to fix it.

Ondrej



More information about the testing-in-python mailing list