This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author purcell
Recipients
Date 2001-09-06.08:27:12
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=21477

I've made a fix now. From the CVS checkin message:

Changed TestResult to store only the text representation 
of an error.

This patch is similar to that proposed by Jeremy. The 
proposed patch altered
the interface of TestResult such that it would be passed 
the error
information as a string rather than an exc_info() tuple.

The implemented change leaves the interface untouched so 
that TestResults
are still passed the tracebacks, but stor them in 
stringified form for
later reporting.

Notes:
- Custom subclasses of TestResult written by users should 
be unaffected.
- The existing 'unittestgui.py' will still work with this 
module after the
  change.
- Support can later be added to pop into the debugger when 
an error occurs;
  this support should be added to a TestRunner rather than 
to TestCase itself,
  which this change will enable.

(Jeremy, Fred, Guido: Thanks for all the feedback)

History
Date User Action Args
2007-08-23 13:55:46adminlinkissue451309 messages
2007-08-23 13:55:46admincreate