diff options
author | ethan-leba <ethanleba5@gmail.com> | 2020-05-16 14:34:12 -0400 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-08-31 21:16:25 +0200 |
commit | 5b6844186f94e5fb4bdc63badbbf49b354912bfd (patch) | |
tree | 098dee527d13c3b700f5dd8485552ff72d8c38ac /tests/functional/u/using_constant_test.py | |
parent | 5c84f0dafe79ca1631f70cf8355a5ccc7f9ed232 (diff) | |
download | pylint-git-5b6844186f94e5fb4bdc63badbbf49b354912bfd.tar.gz |
Add simplifiable-condition and condition-evals-to-constant to the refactoring checker
Diffstat (limited to 'tests/functional/u/using_constant_test.py')
-rw-r--r-- | tests/functional/u/using_constant_test.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/functional/u/using_constant_test.py b/tests/functional/u/using_constant_test.py index d6624daa6..7e902e021 100644 --- a/tests/functional/u/using_constant_test.py +++ b/tests/functional/u/using_constant_test.py @@ -1,7 +1,7 @@ """Verify if constant tests are used inside if statements.""" # pylint: disable=invalid-name, missing-docstring,too-few-public-methods # pylint: disable=no-init,expression-not-assigned, useless-object-inheritance -# pylint: disable=missing-parentheses-for-call-in-test, unnecessary-comprehension +# pylint: disable=missing-parentheses-for-call-in-test, unnecessary-comprehension, condition-evals-to-constant import collections @@ -87,7 +87,6 @@ if Class.method: # [using-constant-test] if instance.method: # [using-constant-test] pass - # For these, we require to do inference, even though the result can be a # constant value. For some of them, we could determine that the test # is constant, such as 2 + 3, but the components of the BinOp |