-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Regression no-member
with inherited AnnAssign
nodes
#7631
Comments
no-member
with inherited AnnAssign nodesno-member
with inherited AnnAssign
nodes
Thanks for your work. I thought I would share this discussion because it sounds like we are moving away from adding these tests to Pylint which relate to astroid fixes; I could have misunderstood of course! |
Thanks for the link. Tbh though I don't fully agree. Test runtime isn't a good argument when the primer tests take 45min 😄 Whereas in astroid we only test a specific functionality, the pylint tests are much boarder. If we have a good library of acceptable code, we can much more easily prevent errors when changing other stuff. Just to give one example, I only found the metaclass issue from pylint-dev/astroid#1836 because of the pylint test suite. Astroid tests for the original PR were green. |
As I said in the discussion you linked, we need to think about it each time imo. If the pipeline time is such a problem we can separate a lot of things and test them in another repository ( |
I don't think it's an issue. ~5min is completely fine. We could also use something like https://pypi.org/project/pytest-xdist/ to speed them up if it ever becomes a problem. |
I was mainly referring to local environments. It is not so much about speeding up CI, but speeding up fixing small regressions locally which you want to test before pushing to Github. |
Sure, we just need to consider the amount of code that uses the astroid fix in pylint. Sometime there is nothing so a test in astroid is enough, but other time there's a quite a lot of checker code and plumbing that also need to be tested. |
Look like this test was indeed required because it's failing on Windows in pylint and this wasn't caught in astroid :) |
Regression from #7509
The false-positive is actually caused by an issue in astroid. In particular with https://github.com/PyCQA/astroid/blob/v2.12.11/astroid/nodes/scoped_nodes/scoped_nodes.py#L2570-L2577
Opened this so I don't forget to add the example as regression test once the issue is fixed.
The text was updated successfully, but these errors were encountered: