summaryrefslogtreecommitdiff
path: root/testsuite/python310.py
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-05-03 00:35:11 +0200
committerMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-05-03 01:56:28 +0200
commitc098297fa5154fd18f81ae97feb06e84b0f6ba15 (patch)
tree50da82b08ffeb3fd3bf4e7a76d259ed25b3771e0 /testsuite/python310.py
parent3d0ac73d8045b5fa771dbbf594ca0b9a4e581e15 (diff)
downloadpep8-c098297fa5154fd18f81ae97feb06e84b0f6ba15.tar.gz
Add whitespace checks for match and case
Diffstat (limited to 'testsuite/python310.py')
-rw-r--r--testsuite/python310.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/python310.py b/testsuite/python310.py
index 83b7bb4..e78d372 100644
--- a/testsuite/python310.py
+++ b/testsuite/python310.py
@@ -7,3 +7,21 @@ match (var, var2):
pass
case _:
print("Default")
+#: E271:2:6 E271:3:9 E271:5:9 E271:7:9
+var = 1
+match var:
+ case 1:
+ pass
+ case 2:
+ pass
+ case (
+ 3
+ ):
+ pass
+#: E275:2:6 E275:3:9 E275:5:9
+var = 1
+match(var):
+ case(1):
+ pass
+ case_:
+ pass