Getting Python's nosetests results in a tearDown() method

Viewed 2886

I want to be able to get the result of a particular test method and output it inside the teardown method, while using the nose test runner. There is a very good example here.

But unfortunately, running nosetests example.py does not work, since nose doesn't seem to like the fact that the run method in the superclass is being overridden:

AttributeError: 'ResultProxy' object has no attribute 'wasSuccessful'
2 Answers
Related