diff options
author | Eric V. Smith <ericvsmith@users.noreply.github.com> | 2019-05-29 07:55:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-29 07:55:44 (GMT) |
commit | f83d1dbd3bfbde940117c85f5c70de00e47b7e6e (patch) | |
tree | d134b1d0cfd4a44ed67fc5d4bfae6190916798aa /Lib | |
parent | 0ae022c6a47abffce22ec185552e319b7b93dbf4 (diff) | |
download | cpython-f83d1dbd3bfbde940117c85f5c70de00e47b7e6e.zip cpython-f83d1dbd3bfbde940117c85f5c70de00e47b7e6e.tar.gz cpython-f83d1dbd3bfbde940117c85f5c70de00e47b7e6e.tar.bz2 |
bpo-37070: Cleanup fstring debug handling (GH-13607)
* Clean up some comments, fix potential memory leaks, clarify literal and expr_text.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_future.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_future.py b/Lib/test/test_future.py index 303c5f7..fd468b5 100644 --- a/Lib/test/test_future.py +++ b/Lib/test/test_future.py @@ -284,6 +284,7 @@ class AnnotationsFutureTestCase(unittest.TestCase): eq("(x:=10)") eq("f'{(x:=10):=10}'") + def test_fstring_debug_annotations(self): # f-strings with '=' don't round trip very well, so set the expected # result explicitely. self.assertAnnotationEqual("f'{x=!r}'", expected="f'x={x!r}'") |