summaryrefslogtreecommitdiff
path: root/testsuite/E71.py
diff options
context:
space:
mode:
authorHelen ST <helenst@gmail.com>2014-12-11 19:28:12 +0000
committerHelen ST <helenst@gmail.com>2014-12-11 19:28:12 +0000
commit36389f0337ce25b399a25757fa757b1cd8f8a336 (patch)
tree056b90d8f3f13e4fc091ad6f66b5fbb56046e275 /testsuite/E71.py
parent4c5bf00cb613be617c7f48d3b2b82a1c7b895ac1 (diff)
downloadpep8-36389f0337ce25b399a25757fa757b1cd8f8a336.tar.gz
E711 / E712 checks test for None != arg and False == arg
(Fixes #307)
Diffstat (limited to 'testsuite/E71.py')
-rw-r--r--testsuite/E71.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/E71.py b/testsuite/E71.py
index 2ff5dea..3f07b1a 100644
--- a/testsuite/E71.py
+++ b/testsuite/E71.py
@@ -1,12 +1,29 @@
#: E711
if res == None:
pass
+#: E711
+if res != None:
+ pass
+#: E711
+if None == res:
+ pass
+#: E711
+if None != res:
+ pass
+
+#
#: E712
if res == True:
pass
#: E712
if res != False:
pass
+#: E712
+if True != res:
+ pass
+#: E712
+if False == res:
+ pass
#
#: E713