nose-devs/nose — Issue #233: Purpose and source of nose.case.Failure are poorly documented
Author: jpellerin
Created: 2011-12-14 16:04:45+00:00
State: open

What steps will reproduce the problem?
1. Create a test_foo.py file with a single line of content: "import asdf".
2. Run "nosetests test_foo.py -vv".

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

Nose seems to pass the ImportError exception and treat it as a test. If you
have a plugin with beforeTest() method implemented it will get passed this
ImportError exception instead of a test case.

Output of the second command listed above starts with:

Failure: (No module named asdf) ... ERROR

what means that the exception is printed like a test (although no tests are
even present in that test file).

I can't really say what the expected behavior of nose should be here. It
certainly shouldn't pass a non-TestCase to a beforeTest() method. But
should it ignore the error for files with no tests cases is a disputable
question.

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

nose 0.10 under Python 2.5 and Linux.

Google Code Info:
Issue #: 112
Author: constant...@gmail.com
Created On: 2007-10-12T21:06:06.000Z
Closed On: