summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_future.py
diff options
context:
space:
mode:
authorHakan Çelik <hakancelik96@outlook.com>2020-04-18 16:17:19 (GMT)
committerGitHub <noreply@github.com>2020-04-18 16:17:19 (GMT)
commitce578831a4e573eac422a488930100bc5380f227 (patch)
tree36941dee90039657430686babe68c52e4b46e672 /Lib/test/test_future.py
parent2b5603140c09766a7d4e8243a70d7144f684f6f9 (diff)
downloadcpython-ce578831a4e573eac422a488930100bc5380f227.zip
cpython-ce578831a4e573eac422a488930100bc5380f227.tar.gz
cpython-ce578831a4e573eac422a488930100bc5380f227.tar.bz2
Add spaces around the ":=" operator in ast_unparse.c (GH-19568)
Diffstat (limited to 'Lib/test/test_future.py')
-rw-r--r--Lib/test/test_future.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_future.py b/Lib/test/test_future.py
index 0522003..fdca231 100644
--- a/Lib/test/test_future.py
+++ b/Lib/test/test_future.py
@@ -296,8 +296,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}'")
+ eq("(x := 10)")
+ eq("f'{(x := 10):=10}'")
eq("1 + 2 + 3")
def test_fstring_debug_annotations(self):