hRobert12 / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

Retain test result object in TestProgram.runTests #194

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The object returned by self.testRunner.run() in TestProgram.runTests is
discarded.  It would be helpful to retain it for later use; my specific use
case is that NumPy needs to return it to users for backwards compatibility
with our previous testing framework.  Patch attached.

Original issue reported on code.google.com by alan.mci...@gmail.com on 21 Jun 2008 at 5:15

Attachments:

GoogleCodeExporter commented 8 years ago
Hmm, but unittest returns None from .run(), right?  So only in your extension to
unittest is the returned object guaranteed to be a result object.

Does implementing .prepareTestResult() in a plugin and retaining the result 
help?

Original comment by j...@pobox.com on 30 Jul 2008 at 8:25