diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-11-09 21:08:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 20:08:32 +0000 |
commit | a0461a4546c42b4a5c25f314702fab331031048e (patch) | |
tree | f4c5c8db66263c4a0b97059267d0765b4a99cec6 /tests/functional/ext/emptystring/empty_string_comparison.py | |
parent | 0e3a0da1d7cf62affb6196ee4713ad4f5c54f6f8 (diff) | |
download | pylint-git-a0461a4546c42b4a5c25f314702fab331031048e.tar.gz |
[compare-to-empty-string] More actionnable and understandable message (#7726)
We have to use " as string delimiter because node as string have ' as
string delimiter.
Diffstat (limited to 'tests/functional/ext/emptystring/empty_string_comparison.py')
-rw-r--r-- | tests/functional/ext/emptystring/empty_string_comparison.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/functional/ext/emptystring/empty_string_comparison.py b/tests/functional/ext/emptystring/empty_string_comparison.py index c6dcf8ea8..b61caeff6 100644 --- a/tests/functional/ext/emptystring/empty_string_comparison.py +++ b/tests/functional/ext/emptystring/empty_string_comparison.py @@ -14,3 +14,9 @@ if X == "": # [compare-to-empty-string] if Y != '': # [compare-to-empty-string] pass + +if "" == Y: # [compare-to-empty-string] + pass + +if '' != X: # [compare-to-empty-string] + pass |