summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_syntax.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-16 22:11:33 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-08-16 22:11:33 (GMT)
commit0847332716d538cc500f8495ddae81510d05b205 (patch)
treed7bd732c0078eec4602af2c1ac521d6c2c57985d /Lib/test/test_syntax.py
parent721b1457a0e36e49fe7f94a8f826661aa871fb08 (diff)
downloadcpython-0847332716d538cc500f8495ddae81510d05b205.zip
cpython-0847332716d538cc500f8495ddae81510d05b205.tar.gz
cpython-0847332716d538cc500f8495ddae81510d05b205.tar.bz2
include filename and line number in SyntaxError
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r--Lib/test/test_syntax.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index 6e60706..e978a6e 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -5,7 +5,7 @@ Here's an example of the sort of thing that is tested.
>>> def f(x):
... global x
Traceback (most recent call last):
-SyntaxError: name 'x' is local and global
+SyntaxError: name 'x' is local and global (<doctest test.test_syntax[0]>, line 1)
The tests are all raise SyntaxErrors. They were created by checking
each C call that raises SyntaxError. There are several modules that