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
Prevent special case for virtualenv
's patching of distutils
from catching other submodules
#1544
Prevent special case for virtualenv
's patching of distutils
from catching other submodules
#1544
Conversation
…catching other submodules
Pull Request Test Coverage Report for Build 2272648242
💛 - Coveralls |
Do you have a Windows to debug this? Seems to pass on 3.8... |
tests/unittest_regrtest.py
Outdated
@unittest.skipUnless(HAS_NUMPY, "Needs numpy") | ||
def test_numpy_distutils(self): | ||
"""Special handling of virtualenv's patching of distutils shouldn't interfere | ||
with numpy.distutils""" |
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.
Do we need to define a specific version of numpy here ? I suppose numpy won't embark distutils forever.
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.
True, it's already deprecated, but won't be removed until Python 3.12 is minimum. I could add a TODO I guess.
…catching other submodules (#1544)
…catching other submodules (#1544)
Steps
Description
Apparently, #1386 traded a false positive created by
virtualenv
for a false positive innumpy.distutils
. This PR tightens the condition to pass both cases.The regression test for
virtualenv
has to be manually triggered on PyCQA. So I tested this on my fork where I could fiddle with the workflow trigger. Or I could push this branch to PyCQA; that might allow us to trigger the workflow on a branch, but not certain.Type of Changes
Related Issue
Refs pylint-dev/pylint#6497