summaryrefslogtreecommitdiff
path: root/testsuite/E72.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2022-07-30 14:48:12 -0400
committerAnthony Sottile <asottile@umich.edu>2022-12-21 12:46:12 -0500
commit571d3ecdc0811f6eb1385d94e0a3de53da65097c (patch)
tree2b1f8606430471f83ea42aa55e9965c35086f8f2 /testsuite/E72.py
parent48b83c91e4372e17c8633c4082b2967a18d3415f (diff)
downloadpep8-571d3ecdc0811f6eb1385d94e0a3de53da65097c.tar.gz
allow `is` and `is not` for type comparesE721-allow-is-v2
Diffstat (limited to 'testsuite/E72.py')
-rw-r--r--testsuite/E72.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/E72.py b/testsuite/E72.py
index 61e17eb..ac55a95 100644
--- a/testsuite/E72.py
+++ b/testsuite/E72.py
@@ -9,7 +9,7 @@ import types
if res == types.IntType:
pass
-#: E721
+#: Okay
import types
if type(res) is not types.ListType:
@@ -26,9 +26,9 @@ assert type(res) == type((0,))
assert type(res) == type((0))
#: E721
assert type(res) != type((1, ))
-#: E721
+#: Okay
assert type(res) is type((1, ))
-#: E721
+#: Okay
assert type(res) is not type((1, ))
#: E211 E721
assert type(res) == type ([2, ])