diff options
Diffstat (limited to 'pylint/test')
-rw-r--r-- | pylint/test/functional/unneeded_not.py | 2 | ||||
-rw-r--r-- | pylint/test/functional/unneeded_not.txt | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/pylint/test/functional/unneeded_not.py b/pylint/test/functional/unneeded_not.py index 78bf87c..0f56218 100644 --- a/pylint/test/functional/unneeded_not.py +++ b/pylint/test/functional/unneeded_not.py @@ -33,6 +33,8 @@ def unneeded_not(): pass if not 2 in [3, 4]: # [unneeded-not] pass + if not someint is 'test': # [unneeded-not] + pass def not_checked(): diff --git a/pylint/test/functional/unneeded_not.txt b/pylint/test/functional/unneeded_not.txt index b962293..13b3512 100644 --- a/pylint/test/functional/unneeded_not.txt +++ b/pylint/test/functional/unneeded_not.txt @@ -11,3 +11,4 @@ unneeded-not:28:unneeded_not:Consider changing "not bool_var == False" to "bool_ unneeded-not:30:unneeded_not:Consider changing "not bool_var != True" to "bool_var == True" unneeded-not:32:unneeded_not:Consider changing "not True == True" to "True != True" unneeded-not:34:unneeded_not:Consider changing "not 2 in [3, 4]" to "2 not in [3, 4]" +unneeded-not:36:unneeded_not:Consider changing "not someint is 'test'" to "someint is not 'test'" |