summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/E74.py4
-rw-r--r--testsuite/python38.py3
2 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/E74.py b/testsuite/E74.py
new file mode 100644
index 0000000..93d6c13
--- /dev/null
+++ b/testsuite/E74.py
@@ -0,0 +1,4 @@
+#: E741:1:8
+lambda l: dict(zip(l, range(len(l))))
+#: E741:1:7 E704:1:1
+def f(l): print(l, l, l)
diff --git a/testsuite/python38.py b/testsuite/python38.py
index faf9aa7..536448d 100644
--- a/testsuite/python38.py
+++ b/testsuite/python38.py
@@ -56,3 +56,6 @@ if (x := 1) == (y := 2):
#: E741
while l := 1:
pass
+#: E741
+if (l := 1):
+ pass