Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision 7b0657027f04ac0367908ee0474f6d762366e4bb authored by Steve Purcell on 06 September 2001, 08:24:40 UTC, committed by Steve Purcell on 06 September 2001, 08:24:40 UTC
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)
1 parent 387c547
Tip revision: 7b0657027f04ac0367908ee0474f6d762366e4bb authored by Steve Purcell on 06 September 2001, 08:24:40 UTC
Changed TestResult to store only the text representation of an error.
Changed TestResult to store only the text representation of an error.
Tip revision: 7b06570
File | Mode | Size |
---|---|---|
RPM | ||
ACKS | -rw-r--r-- | 6.5 KB |
AIX-NOTES | -rw-r--r-- | 7.3 KB |
BeOS-NOTES | -rw-r--r-- | 1.4 KB |
BeOS-setup.py | -rw-r--r-- | 24.6 KB |
HISTORY | -rw-r--r-- | 305.2 KB |
HPUX-NOTES | -rw-r--r-- | 1.0 KB |
Makefile.pre.in | -rw-r--r-- | 10.0 KB |
NEWS | -rw-r--r-- | 92.7 KB |
PURIFY.README | -rw-r--r-- | 3.6 KB |
Porting | -rw-r--r-- | 1.9 KB |
README | -rw-r--r-- | 1.8 KB |
RFD | -rw-r--r-- | 3.9 KB |
cheatsheet | -rw-r--r-- | 99.9 KB |
find_recursionlimit.py | -rw-r--r-- | 2.2 KB |
gdbinit | -rw-r--r-- | 898 bytes |
indent.pro | -rw-r--r-- | 66 bytes |
python-mode.el | -rw-r--r-- | 120.6 KB |
python.man | -rw-r--r-- | 11.1 KB |
setuid-prog.c | -rw-r--r-- | 5.3 KB |
unicode.txt | -rw-r--r-- | 112 bytes |
vgrindefs | -rw-r--r-- | 505 bytes |
Computing file changes ...