diff options
Diffstat (limited to 'pylint/test/functional/unneeded_not.py')
-rw-r--r-- | pylint/test/functional/unneeded_not.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pylint/test/functional/unneeded_not.py b/pylint/test/functional/unneeded_not.py index 882a238..78bf87c 100644 --- a/pylint/test/functional/unneeded_not.py +++ b/pylint/test/functional/unneeded_not.py @@ -1,6 +1,6 @@ """Check exceeding negations in boolean expressions trigger warnings""" -# pylint: disable=singleton-comparison +# pylint: disable=singleton-comparison, too-many-branches def unneeded_not(): """This is not ok @@ -31,6 +31,8 @@ def unneeded_not(): pass if not True == True: # [unneeded-not] pass + if not 2 in [3, 4]: # [unneeded-not] + pass def not_checked(): @@ -39,3 +41,5 @@ def not_checked(): someint = 2 if not(bool_var == False and someint == 1): pass + if 2 not in [3, 4]: + pass |