[py-dev] Really simple question about py.test
Sean Leach
kickdaddy at gmail.com
Thu Jul 28 21:51:34 CEST 2005
Why does this execute the same test twice (it only happens on a failed test):
% cat test_twice.py
def fail():
print 'running failed'
return False
class TestTwice:
def test_twice(self):
assert fail()
% py.test test_twice.py
It will print 'running failed' twice (and of course run fail() twice).
Is this a feature I am missing in the docs? I really don't want my
failed tests to run twice.
I am using the latest svn code.
Regards,
Sean
More information about the py-dev
mailing list