nose-devs/nose — Issue #229: plugin beforeTest / afterTest AttributeError exceptions swallowed
Author: jpellerin
Created: 2011-12-14 16:04:31+00:00
State: open

What steps will reproduce the problem?
1. Run attached test

What is the expected output? What do you see instead?

Expect: test passes
Got: test fails

What version of the product are you using? On what operating system?

http://python-nose.googlecode.com/svn/branches/0.10.0-stable revision 358

Please provide any additional information below.

AttributeError exceptions are discarded by nose.case.Test.beforeTest() and
nose.case.Test.afterTest(). This makes it harder to detect and track down
bugs in plugins.

There is a similar bug in proxy.py, in the methods of the same names. My
patch doesn't fix that, because my test doesn't test it.

Actually, I think the test should fail even with the bug fix, since the
test plugins print "beforeTest" / "afterTest" from the plugin API methods
of the same names, but those strings don't appear in the expected output of
the doctest. That would be a separate bug, though.

Google Code Info:
Issue #: 107
Author: j...@pobox.com
Created On: 2007-09-29T12:54:39.000Z
Closed On: 2007-10-01T16:45:56.000Z