diff options
author | Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> | 2019-05-18 22:10:20 (GMT) |
---|---|---|
committer | Pablo Galindo <Pablogsal@gmail.com> | 2019-05-18 22:10:20 (GMT) |
commit | fa19a25c238d0769e6a5aa63ce05133d66043556 (patch) | |
tree | 077b992633fa929e61a03b606803d84a9f9f524a /Lib/test/test_future.py | |
parent | eab99650799699f766c2660f4cfa8ff3f9e8457f (diff) | |
download | cpython-fa19a25c238d0769e6a5aa63ce05133d66043556.zip cpython-fa19a25c238d0769e6a5aa63ce05133d66043556.tar.gz cpython-fa19a25c238d0769e6a5aa63ce05133d66043556.tar.bz2 |
Add support for PEP572 in ast_unparse.c (GH-13337)
Diffstat (limited to 'Lib/test/test_future.py')
-rw-r--r-- | Lib/test/test_future.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_future.py b/Lib/test/test_future.py index 38de3df..cd320a2 100644 --- a/Lib/test/test_future.py +++ b/Lib/test/test_future.py @@ -275,6 +275,8 @@ class AnnotationsFutureTestCase(unittest.TestCase): eq('f((x for x in a), 2)') eq('(((a)))', 'a') eq('(((a, b)))', '(a, b)') + eq("(x:=10)") + eq("f'{(x:=10):=10}'") if __name__ == "__main__": |