Hello, there are 2 files attachment. Both should be easly used to reproduce bugs i found using py.test (which is great tool and i thank everyone who created/contributed to it).
test_fail.py - both tests should fail because teardown_method is failing test_output.py - there is output of teardown method of previous test in current test's recorded output which i believe shouldn't be there cu, MS
import sys class Test: def teardown_method(self, method): assert 1 == 0 def test_fail1(self): # should fail because of failing teardown_method assert 1 == 1 def test_fail2(self): assert 1 == 0
import sys class Test: def setup_method(self, method): sys.stderr.write('Setup: %s\n' % method.__name__) def teardown_method(self, method): sys.stderr.write('Teardown: %s\n' % method.__name__) def test_pass(self): assert 1 == 1 def test_fail(self): assert 1 == 0
_______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev