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 |
---|---|---|
.cvsignore | -rw-r--r-- | 17 bytes |
atof.c | -rw-r--r-- | 815 bytes |
bltinmodule.c | -rw-r--r-- | 47.5 KB |
ceval.c | -rw-r--r-- | 80.5 KB |
codecs.c | -rw-r--r-- | 10.0 KB |
compile.c | -rw-r--r-- | 123.4 KB |
dup2.c | -rw-r--r-- | 685 bytes |
dynload_aix.c | -rw-r--r-- | 5.3 KB |
dynload_beos.c | -rw-r--r-- | 6.1 KB |
dynload_dl.c | -rw-r--r-- | 537 bytes |
dynload_hpux.c | -rw-r--r-- | 1.3 KB |
dynload_mac.c | -rw-r--r-- | 3.2 KB |
dynload_next.c | -rw-r--r-- | 4.5 KB |
dynload_os2.c | -rw-r--r-- | 958 bytes |
dynload_shlib.c | -rw-r--r-- | 2.0 KB |
dynload_stub.c | -rw-r--r-- | 202 bytes |
dynload_win.c | -rw-r--r-- | 7.4 KB |
errors.c | -rw-r--r-- | 13.7 KB |
exceptions.c | -rw-r--r-- | 29.5 KB |
fmod.c | -rw-r--r-- | 435 bytes |
frozen.c | -rw-r--r-- | 965 bytes |
frozenmain.c | -rw-r--r-- | 1.4 KB |
future.c | -rw-r--r-- | 6.0 KB |
getargs.c | -rw-r--r-- | 29.9 KB |
getcompiler.c | -rw-r--r-- | 366 bytes |
getcopyright.c | -rw-r--r-- | 498 bytes |
getcwd.c | -rw-r--r-- | 1.3 KB |
getmtime.c | -rw-r--r-- | 318 bytes |
getopt.c | -rw-r--r-- | 2.3 KB |
getplatform.c | -rw-r--r-- | 130 bytes |
getversion.c | -rw-r--r-- | 260 bytes |
graminit.c | -rw-r--r-- | 29.0 KB |
hypot.c | -rw-r--r-- | 282 bytes |
import.c | -rw-r--r-- | 58.7 KB |
importdl.c | -rw-r--r-- | 2.0 KB |
importdl.h | -rw-r--r-- | 931 bytes |
mactoolboxglue.c | -rw-r--r-- | 11.5 KB |
marshal.c | -rw-r--r-- | 17.9 KB |
memmove.c | -rw-r--r-- | 439 bytes |
modsupport.c | -rw-r--r-- | 9.8 KB |
mysnprintf.c | -rw-r--r-- | 2.0 KB |
mystrtoul.c | -rw-r--r-- | 3.1 KB |
pyfpe.c | -rw-r--r-- | 623 bytes |
pystate.c | -rw-r--r-- | 6.1 KB |
pythonrun.c | -rw-r--r-- | 32.9 KB |
sigcheck.c | -rw-r--r-- | 529 bytes |
strdup.c | -rw-r--r-- | 256 bytes |
strerror.c | -rw-r--r-- | 446 bytes |
strtod.c | -rw-r--r-- | 5.1 KB |
structmember.c | -rw-r--r-- | 5.0 KB |
symtable.c | -rw-r--r-- | 3.4 KB |
sysmodule.c | -rw-r--r-- | 27.9 KB |
thread.c | -rw-r--r-- | 2.3 KB |
thread_beos.h | -rw-r--r-- | 7.5 KB |
thread_cthread.h | -rw-r--r-- | 3.6 KB |
thread_foobar.h | -rw-r--r-- | 2.5 KB |
thread_lwp.h | -rw-r--r-- | 3.8 KB |
thread_nt.h | -rw-r--r-- | 8.9 KB |
thread_os2.h | -rw-r--r-- | 4.1 KB |
thread_pth.h | -rw-r--r-- | 7.1 KB |
thread_pthread.h | -rw-r--r-- | 11.0 KB |
thread_sgi.h | -rw-r--r-- | 11.8 KB |
thread_solaris.h | -rw-r--r-- | 4.4 KB |
thread_wince.h | -rw-r--r-- | 4.0 KB |
traceback.c | -rw-r--r-- | 5.5 KB |
Computing file changes ...