summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-12-16 14:51:52 +0100
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-12-16 21:04:11 +0100
commit6a2f71b19fb107983af6bb321fa6cb3b78650f4a (patch)
treee0f286f059c63a68ce2d112ee7c79ba541e7c40a /testsuite
parentab63c978ac3540cd556f880d6035264deea8cb6e (diff)
downloadpep8-6a2f71b19fb107983af6bb321fa6cb3b78650f4a.tar.gz
Fix false positive E713; issue #330issue336
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/E71.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/E71.py b/testsuite/E71.py
index 25a308f..ea870e5 100644
--- a/testsuite/E71.py
+++ b/testsuite/E71.py
@@ -46,18 +46,28 @@ if not X is Y:
#: E714
if not X.B is Y:
pass
+
+#
#: Okay
if x not in y:
pass
+
if not (X in Y or X is Z):
pass
+
if not (X in Y):
pass
+
if x is not y:
pass
if TrueElement.get_element(True) == TrueElement.get_element(False):
pass
+
if (True) == TrueElement or x == TrueElement:
pass
+
+assert (not foo) in bar
+assert {'x': not foo} in bar
+assert [42, not foo] in bar
#: