[py-dev] Gitting rid of "(inconsistently failed then succeeded)" ?
Laura Creighton
lac at openend.se
Tue Apr 28 15:03:19 CEST 2009
In a message of Tue, 28 Apr 2009 13:40:36 +0200, holger krekel writes:
<snip>
>taking your valid points into account, i'd
>i'd like to go with something like this (re-posting the func example):
>
> def test_inconsistent():
> def f(l=[1,0]):
return l.pop()
>> assert f()
>E: AssertionError: (assertion failed, but when it was re-run for
>printing intermediate values, it did not fail. Suggestions:
>compute assert expression before the assert or use --nomagic)
>
>fine to you?
>thanks & cheers,
>holger
Looks great to me. :)
Laura
More information about the py-dev
mailing list