bpo-12458: Fix line numbers for multiline expressions. (GH-8774)

This commit is contained in:
Serhiy Storchaka 2018-09-17 15:17:29 +03:00 committed by GitHub
parent 5e99b56d6b
commit da8d72c953
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 3741 additions and 3709 deletions

View file

@ -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é