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 regression tests for astroid 2.7.0 fixes #4816

Conversation

Pierre-Sassoulas
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas commented Aug 8, 2021

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Tests for pylint-dev/astroid#1121 and pylint-dev/astroid#1126

@Pierre-Sassoulas Pierre-Sassoulas added False Positive 🦟 A message is emitted but nothing is wrong with the code Needs astroid update Needs an astroid update (probably a release too) before being mergable labels Aug 8, 2021
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.10.0 milestone Aug 8, 2021
@Pierre-Sassoulas Pierre-Sassoulas changed the title Add regression tests for issue with subclassed enums Add regression tests for astroid 2.7.0 fixes Aug 15, 2021
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the regression-test-533-2224-2626 branch from 7e743ef to 7e8710d Compare August 15, 2021 18:48
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the regression-test-533-2224-2626 branch from 7e8710d to dffdc1f Compare August 16, 2021 11:02
@@ -1,4 +1,6 @@
# pylint: disable=missing-docstring, too-few-public-methods, useless-object-inheritance
from dataclasses import dataclass, InitVar
Copy link
Contributor

Choose a reason for hiding this comment

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

@Pierre-Sassoulas this was an oversight on my part---dataclasses was introduced in Python 3.7, which is why the tests are failing on 3.6. I think the right fix is to move this test into a separate file do do the min_pyver configuration?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes there are other example in the functional test. (same name with _py37 would work). You made the code we'll need in 4 months :) We need to support python 3.6 until its end of life, but it's close now.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1136246062

  • 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 92.737%

Totals Coverage Status
Change from base Build 1133261731: 0.0%
Covered Lines: 13419
Relevant Lines: 14470

πŸ’› - Coveralls

@Pierre-Sassoulas Pierre-Sassoulas merged commit 676f484 into pylint-dev:main Aug 16, 2021
@Pierre-Sassoulas Pierre-Sassoulas deleted the regression-test-533-2224-2626 branch August 16, 2021 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug πŸͺ² False Positive 🦟 A message is emitted but nothing is wrong with the code Needs astroid update Needs an astroid update (probably a release too) before being mergable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants