diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-09-17 12:17:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-17 12:17:29 (GMT) |
commit | da8d72c953369b872a12c13f136ada77a786714a (patch) | |
tree | bcfb6546be24ecf3efaee838934001fd931fa065 /Lib/test/test_doctest.py | |
parent | 5e99b56d6b249995a4fa2bc09c0bb03841f49572 (diff) | |
download | cpython-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.py | 2 |
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é |