diff options
author | Laura M?dioni <laura.medioni@logilab.fr> | 2015-11-25 14:19:14 +0100 |
---|---|---|
committer | Laura M?dioni <laura.medioni@logilab.fr> | 2015-11-25 14:19:14 +0100 |
commit | 508befc5aefe6ffc5ea522455f744069efa1559f (patch) | |
tree | b41064c6b9261bf9330e7fc2c09f67819183d8d1 /pylint/test | |
parent | f086f414bb421aaa384b70526cfee211ac067215 (diff) | |
download | pylint-508befc5aefe6ffc5ea522455f744069efa1559f.tar.gz |
Ignore multiple comparisons in unneeded-not rule
related to issue #703
Diffstat (limited to 'pylint/test')
-rw-r--r-- | pylint/test/functional/unneeded_not.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pylint/test/functional/unneeded_not.py b/pylint/test/functional/unneeded_not.py index 0f56218..8f7ba93 100644 --- a/pylint/test/functional/unneeded_not.py +++ b/pylint/test/functional/unneeded_not.py @@ -45,3 +45,7 @@ def not_checked(): pass if 2 not in [3, 4]: pass + if not someint == bool_var == 2: + pass + if not 2 <= someint < 3 < 4: + pass |