summaryrefslogtreecommitdiff
path: root/testsuite/python38.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/python38.py')
-rw-r--r--testsuite/python38.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/python38.py b/testsuite/python38.py
index adf217d..5f62a3f 100644
--- a/testsuite/python38.py
+++ b/testsuite/python38.py
@@ -1,3 +1,15 @@
#: Okay
def f(a, /, b):
pass
+#: Okay
+if x := 1:
+ print(x)
+if m and (token := m.group(1)):
+ pass
+stuff = [[y := f(x), x / y] for x in range(5)]
+#: E225:1:5
+if x:= 1:
+ pass
+#: E225:1:18
+if False or (x :=1):
+ pass