summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_doctest.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-09-17 12:17:29 (GMT)
committerGitHub <noreply@github.com>2018-09-17 12:17:29 (GMT)
commitda8d72c953369b872a12c13f136ada77a786714a (patch)
treebcfb6546be24ecf3efaee838934001fd931fa065 /Lib/test/test_doctest.py
parent5e99b56d6b249995a4fa2bc09c0bb03841f49572 (diff)
downloadcpython-da8d72c953369b872a12c13f136ada77a786714a.zip
cpython-da8d72c953369b872a12c13f136ada77a786714a.tar.gz
cpython-da8d72c953369b872a12c13f136ada77a786714a.tar.bz2
bpo-12458: Fix line numbers for multiline expressions. (GH-8774)
Diffstat (limited to 'Lib/test/test_doctest.py')
-rw-r--r--Lib/test/test_doctest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_doctest.py b/Lib/test/test_doctest.py
index 797bdb8..efdce3c 100644
--- a/Lib/test/test_doctest.py
+++ b/Lib/test/test_doctest.py
@@ -2719,7 +2719,7 @@ Check doctest with a non-ascii filename:
Exception raised:
Traceback (most recent call last):
File ...
- compileflags, 1), test.globs)
+ exec(compile(example.source, filename, "single",
File "<doctest foo-bär@baz[0]>", line 1, in <module>
raise Exception('clé')
Exception: clé