-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tearDown/setUp considered an invalid name for classes inherited indirectly from TestCase #4060
Comments
I would advise to modify the regex in the configuration:
|
@Pierre-Sassoulas it makes sense. Thank you. May we close the issue? |
This is a real problem in pylint but I don't think it's going to be handled any time soon. If it is, it will probably be in a very generic issue involving astroid guessing the right inherited class (?). I wouldn't mind closing it. Maybe we could fix this by updating the default regex directly inside pylnt ? |
@socketpair can you give a snippet please? |
class BaseTestEtcd(IsolatedAsyncioTestCase):
@classmethod
def tearDownClass(cls):
...
def setUp(self):
... |
@socketpair thanks for the snippet. I will work on it ASAP. |
@hippo91 Do you have any progress on it ? |
@socketpair i am sorry i did not have time to work on this. |
@socketpair i investigated a bit the problem. |
I have:
Seems because pylint does not recognize
IsolatedAsyncioTestCase
in same way asTestCase
The text was updated successfully, but these errors were encountered: