using-constant-test triggers on a built-in exception property #9556
Labels
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Bug description
The using-constant-test warning shows up on conditional use of SystemExit's
code
property. This appears similar to, but not the same as #3484.Given the following code, run pylint on it. Note the comment.
test_pylint.py
Configuration
No response
Command used
Pylint output
Expected behavior
No error
Pylint version
OS / Environment
Ubuntu 24.04
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: