Skip to content
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 a regression tests for https://github.com/PyCQA/astroid/pull/1207 #5210

Closed
wants to merge 1 commit into from

Conversation

Pierre-Sassoulas
Copy link
Member

Type of Changes

Type
βœ“ πŸ› Bug fix
βœ“ πŸ“œ Docs

Description

This should fail before we upgrade astroid following the merge of pylint-dev/astroid#1207

@Pierre-Sassoulas Pierre-Sassoulas added Bug πŸͺ² Maintenance Discussion or action around maintaining pylint or the dev workflow Needs astroid update Needs an astroid update (probably a release too) before being mergable labels Oct 25, 2021
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.12.0 milestone Oct 25, 2021
@coveralls
Copy link

coveralls commented Oct 25, 2021

Pull Request Test Coverage Report for Build 1641041479

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.694%

Totals Coverage Status
Change from base Build 1641026660: 0.0%
Covered Lines: 14338
Relevant Lines: 15303

πŸ’› - Coveralls

@Pierre-Sassoulas
Copy link
Member Author

This does not fail like it should.

@Pierre-Sassoulas Pierre-Sassoulas removed this from the 2.12.0 milestone Oct 25, 2021
@DanielNoord
Copy link
Collaborator

Shouldn't we make this a blocker for 2.12.0? The change in astroid seems minimal and fixable before 2.12 is released!

@Pierre-Sassoulas
Copy link
Member Author

I did not put the fix in astroid 2.8.5 because testing would take time. There are a lot of fixes in 2.12 (ex 2.11.2) I'd like to release it fast and cutting the scope will help. Also we'll do 2.13 very soon after because of python 3.6.2 deprecation.

@DanielNoord
Copy link
Collaborator

Ah okay! Would you mind waiting for this afternoon before releasing? I've got some undefined-variable issues I would like to fix as well, some of which already are with the new assignment expression logic. Think it would be nice to fix a bunch of them in this release!

@Pierre-Sassoulas
Copy link
Member Author

Would you mind waiting for this afternoon before releasing?

There's still some hard to do issues like primer tests that I hesitate about moving in 2.13 so it's more like a "I'm trying to focus on releasing now" than "I'm going to release right now" at this point πŸ˜„

@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.13.0 milestone Nov 4, 2021
@Pierre-Sassoulas Pierre-Sassoulas marked this pull request as ready for review December 12, 2021 08:46
@DanielNoord
Copy link
Collaborator

@Pierre-Sassoulas I would be okay with letting this go. If anything this should probably be tested in astroid. This seems to be such a niche case that we can add tests cases when somebody reports problems with this (we will then probably also get more input on what to actually test).

@DanielNoord
Copy link
Collaborator

Note that this being tracked by #5341, so if we decide to close this that issue should be closed as well.

@Pierre-Sassoulas
Copy link
Member Author

I'm reluctant to close as we merged in astroid with the implicit assumption that we were going to test in pylint as it would be easier to test in pylint. I totally lost the context of the original change at this point though.

@jacobtylerwalls
Copy link
Member

jacobtylerwalls commented Feb 15, 2022

I opened an alternative regression test that does fail before the astroid PR (and hopefully is meaningful!) in pylint-dev/astroid#1397.

This does not fail like it should.

I think this was expected, in the PR the author said "when you run the test build within such a no-filesystem environment."

@DanielNoord
Copy link
Collaborator

Superseded by pylint-dev/astroid#1397. Thanks a lot @jacobtylerwalls, this has been a very long open issue.

@DanielNoord DanielNoord deleted the tests-for-astroid-1207 branch February 15, 2022 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug πŸͺ² Maintenance Discussion or action around maintaining pylint or the dev workflow Needs astroid update Needs an astroid update (probably a release too) before being mergable Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants