Ezio Melotti added the comment:
Fixed in r73712.
I left "result object" because the object can also be a subclass of
TestResult. I also changed the last part to clarify that the result
object is never returned to the caller, even when it's passed to run().
Thanks!
--
resolution: -> fi
Ezio Melotti added the comment:
>>> class MyTest(TestCase):
... def runTest(self): pass
... def defaultTestCase(self):
... print('defaultTestCase called')
...
>>> test = MyTest()
>>> test.run()
>>> class MyTest(TestCase):
... def runTest(self): pass
... def defaultTestResult(self):
.
New submission from En-Ran Zhou :
In Python 2.6 Document, Library reference 26.3 unittest
(http://docs.python.org/library/unittest.html#unittest.TestCase.run)
The description of TestCase.run method says that ``If result is omitted
or None, a temporary result object is created (by calling the
defa