summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-10-13 14:44:16 +0200
committerMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-10-13 15:02:19 +0200
commit52ac6c6f97e778b4716ea28959940b97148e7ae0 (patch)
tree36f997cccea0af7a9c1442e5a204013aa1549cef /testsuite
parentc2ec41377bd6b04653f8dd372b12046e40d96c38 (diff)
downloadpep8-52ac6c6f97e778b4716ea28959940b97148e7ae0.tar.gz
Emit E221-E224 for walrus op
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/python38.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/python38.py b/testsuite/python38.py
index 1374192..8bf0d4d 100644
--- a/testsuite/python38.py
+++ b/testsuite/python38.py
@@ -42,3 +42,14 @@ import typing as t
all_the_things: t.List[str] = []
import logging
+#: E221:1:5 E222:1:9 E221:3:6
+if x := 1:
+ pass
+if (x := 2):
+ pass
+#: E223:1:5 E224:1:8
+if x := 2:
+ pass
+#: E221:1:6 E221:1:19
+if (x := 1) == (y := 2):
+ pass