Message56655
| Author |
nouri |
| Recipients |
nouri |
| Date |
2007年10月22日.20:19:05 |
| SpamBayes Score |
0.047996964 |
| Marked as misclassified |
No |
| Message-id |
<1193084346.99.0.810572537289.issue1312@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
doctest.DocTestParser._EXCEPTION_RE does not allow for output before the
actual traceback.
Attached is a simple test that demonstrates the problem. This patch
fixes it:
--- /usr/lib/python2.5/doctest.py 2007年10月22日 21:45:21.000000000 +0200
+++ /home/daniel/tmp/doctest.py 2007年10月22日 22:19:12.000000000 +0200
@@ -513,7 +513,7 @@
_EXCEPTION_RE = re.compile(r"""
# Grab the traceback header. Different versions of Python have
# said different things on the first traceback line.
- ^(?P<hdr> Traceback\ \(
+ .*^(?P<hdr> Traceback\ \(
(?: most\ recent\ call\ last
| innermost\ last
) \) :
_EXCEPTION_RE = re.compile(r"""
# Grab the traceback header. Different versions of Python have
# said different things on the first traceback line.
^(?P<hdr> Traceback\ \(
(?: most\ recent\ call\ last
| innermost\ last
) \) :
)
\s* $ # toss trailing whitespace on the header.
(?P<stack> .*?) # don't blink: absorb stuff until...
^ (?P<msg> \w+ .*) # a line *starts* with alphanum.
""", re.VERBOSE | re.MULTILINE | re.DOTALL) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年10月22日 20:19:07 | nouri | set | spambayes_score: 0.047997 -> 0.047996964 recipients:
+ nouri |
| 2007年10月22日 20:19:07 | nouri | set | spambayes_score: 0.047997 -> 0.047997 messageid: <1193084346.99.0.810572537289.issue1312@psf.upfronthosting.co.za> |
| 2007年10月22日 20:19:06 | nouri | link | issue1312 messages |
| 2007年10月22日 20:19:05 | nouri | create |
|