From 29978aedcba31ba474d0dfa1cecced69684c3cc7 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 4 Oct 2004 03:34:32 +0000 Subject: [PATCH] The docs claimed a test would pass that actually wouldn't pass. Repaired the example so it does pass. --- Doc/lib/libdoctest.tex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/lib/libdoctest.tex b/Doc/lib/libdoctest.tex index 92aa039a11..b982a73e54 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 "", line 1 1 1 ^ -- 2.40.0