mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
The docs claimed a test would pass that actually wouldn't pass. Repaired
the example so it does pass.
This commit is contained in:
parent
b9b5f160ab
commit
29978aedcb
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
^
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue