-
-
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
Add test for relative-beyond-top-level
false positive
#5059
Conversation
Do we want to add the extra tests added to |
Pull Request Test Coverage Report for Build 1350996452
π - Coveralls |
Well you're right it's notre strictly necessary, but pylint is modifying the path and doing complex thing on top of astroid generally so I would deem keeping them prudent. |
@DanielNoord Can you add the example from pylint-dev/astroid#1200 here as well? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I forgot that we need an entry in the changelog.
Done!
Do we? This was a change in |
Thanks!
It's not strictly required, but probably better. Don't know how many users will actually read the |
Hm, tests pass on |
Can we merge this before we get to the bottom of #5131? Or do we want to wait for that issue as well? |
I think we'll need to add a regression test for the other issue before 2.12 goes out but we don't have to do it in this PR necesssarily. I don't fear conflicts if we don't merge this immediately though. |
This should be fixed by pylint-dev/astroid#1211 See explanation of the latest regression there. |
034ff86
to
17668c6
Compare
At some point we might need to check if the changes to the import resolver actually fixed some of the reported issues with |
Type of Changes
Description
This builds upon the fix and later regression fixes introduced in pylint-dev/astroid#1186, pylint-dev/astroid#1200, pylint-dev/astroid#1211
I think running
pylint
on all the files in the test folder might be a bit overkill but I wanted to show my working solution and get feedback first. As said in theastroid
PR I'm not 100% comfortable with namespace packages and importing, but this seems to fix the issue!Closes #2967
Closes #5131