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 test coverage for sibling except handlers #6165

Merged

Conversation

jacobtylerwalls
Copy link
Member

@jacobtylerwalls jacobtylerwalls commented Apr 3, 2022

Type of Changes

Type
🔨 Refactoring

Description

This adds coverage in case this block is removed without a replacement. (Marking as draft for now: I don't understand why it's needed, so I might try to replace it.)

https://github.com/PyCQA/pylint/blob/a93602d92edbf11885645866216d194324578acf/pylint/checkers/variables.py#L2362-L2366

@Pierre-Sassoulas Pierre-Sassoulas added the Maintenance Discussion or action around maintaining pylint or the dev workflow label Apr 3, 2022
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.14.0 milestone Apr 3, 2022
@coveralls
Copy link

Pull Request Test Coverage Report for Build 2085486197

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.006%) to 94.417%

Totals Coverage Status
Change from base Build 2085452416: 0.006%
Covered Lines: 15541
Relevant Lines: 16460

💛 - Coveralls

@jacobtylerwalls
Copy link
Member Author

I looked at this again: I think we could make things more consistent by removing the special case (see end of discussion on #4391), but that would make pylint a bit worse, since it's already kind of a problem that pylint is all-or-nothing per name in the variables checker (see #4795).

I figure just merging this test would suffice for now.

@jacobtylerwalls jacobtylerwalls marked this pull request as ready for review April 9, 2022 22:56
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge this then :) !

@Pierre-Sassoulas Pierre-Sassoulas merged commit 5741fe8 into pylint-dev:main Apr 10, 2022
@jacobtylerwalls jacobtylerwalls deleted the sibling-except-handler branch April 10, 2022 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining pylint or the dev workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants