summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-10-04 03:34:32 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-10-04 03:34:32 (GMT)
commit29978aedcba31ba474d0dfa1cecced69684c3cc7 (patch)
treeb8b5526de4432d1447845fffa220a3ae1b479110 /Doc
parentb9b5f160ab7c17469c5ff297292275253e4f7570 (diff)
downloadcpython-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.tex3
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
^