You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've been invoking tests on CI against an editable install of pylint for a long time. Doing so has the potential to mask issues. See blog post.
We now have evidence of some of those issues from the failures in the PR testing against Python 3.12, which for unrelated reasons, forced us to upgrade setuptools. Without using the legacy behavior, bugs became evident.
That mock shouldn't work, since the real location of the PyLinter class is at pylint.lint.pylinter.PyLinter. It was only working because the pylint.lint module imports PyLinter, but AFIAU there's no reason to expect that to work when testing the installation of the pylint package, which won't install pylint.lint (whereas an editable install will, assuming you're invoking tests from pylint.
That's just a bug in a test, but there are functional bugs, too, such as the moved check in #8702 potentially crashing:
I've found a workaround for the 3.12 branch to keep that one using legacy behavior, but suggesting we also look at this fixing this for the next pylint alpha.
The text was updated successfully, but these errors were encountered:
We've been invoking tests on CI against an editable install of pylint for a long time. Doing so has the potential to mask issues. See blog post.
We now have evidence of some of those issues from the failures in the PR testing against Python 3.12, which for unrelated reasons, forced us to upgrade
setuptools
. Without using the legacy behavior, bugs became evident.One of the most minimal bugs is this one:
pylint/tests/lint/test_pylinter.py
Lines 39 to 41 in 9f2de91
That mock shouldn't work, since the real location of the
PyLinter
class is atpylint.lint.pylinter.PyLinter
. It was only working because thepylint.lint
module importsPyLinter
, but AFIAU there's no reason to expect that to work when testing the installation of thepylint
package, which won't installpylint.lint
(whereas an editable install will, assuming you're invoking tests frompylint
.That's just a bug in a test, but there are functional bugs, too, such as the moved check in #8702 potentially crashing:
I've found a workaround for the 3.12 branch to keep that one using legacy behavior, but suggesting we also look at this fixing this for the next pylint alpha.
The text was updated successfully, but these errors were encountered: