diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-10-04 03:34:32 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-10-04 03:34:32 (GMT) |
commit | 29978aedcba31ba474d0dfa1cecced69684c3cc7 (patch) | |
tree | b8b5526de4432d1447845fffa220a3ae1b479110 /Doc | |
parent | b9b5f160ab7c17469c5ff297292275253e4f7570 (diff) | |
download | cpython-29978aedcba31ba474d0dfa1cecced69684c3cc7.zip cpython-29978aedcba31ba474d0dfa1cecced69684c3cc7.tar.gz cpython-29978aedcba31ba474d0dfa1cecced69684c3cc7.tar.bz2 |
The docs claimed a test would pass that actually wouldn't pass. Repaired
the example so it does pass.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libdoctest.tex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/lib/libdoctest.tex b/Doc/lib/libdoctest.tex index 92aa039..b982a73 100644 --- a/Doc/lib/libdoctest.tex +++ b/Doc/lib/libdoctest.tex @@ -501,7 +501,7 @@ Some details you should read once, but won't need to remember: case where you need to test a \exception{SyntaxError} that omits the traceback header, you will need to manually add the traceback header line to your test example. - + \item For some \exception{SyntaxError}s, Python displays the character position of the syntax error, using a \code{\^} marker: @@ -520,6 +520,7 @@ SyntaxError: invalid syntax \begin{verbatim} >>> 1 1 +Traceback (most recent call last): File "<stdin>", line 1 1 1 ^ |