Some applications can make use of more error information (for example,
an integrated development environment, or IDE). Such an application
can retrieve supplemental information about errors and failures by
using an alternate TestResult implementation, and extending
the defaultTestResult() method of the TestCase class
to provide it.
Here is a brief example of a TestResult subclass which stores
the actual exception and traceback objects. (Be aware that storing
traceback objects can cause a great deal of memory not to be reclaimed
when it otherwise would be, which can have effects that affect the
behavior of the tests.)