-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Define create_module()/exec_module() in VendorImporter #2517
Conversation
The "Automated Tests / test (3.6, ubuntu-latest)" fails. I don't know if it's related to the PR.
I don't know pytest. I read that |
XFAIL means they failed and were expected to fail. |
Ah, I think that the two tests that failed are:
|
3f1b70e
to
542d24b
Compare
I've removed the bits that I didn't understand. This should do. |
In the current form, this fixes most of the failures in depending packages. Related #2493 remains unfixed (I had no idea how to fix it). |
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.
LGTM.
I wrote a similar fix in the six module: benjaminp/six@e51553a
Together with #2523 this fixes the problems we saw in Fedora. |
Fixed Python deprecation issues related to module importing, as well as file access within the Lingua plugin, for deprecated APIs that began to emit warnings under Python 3.10. Pull request courtesy Petr Viktorin. This modernizes the code to avoid `DeprecationWarning` and `ResourceWarning` encountered in the test suite under Python 3.10a4: - [load_module](https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module) is deprecated - Some files weren't being closed This changes the semantics of the `compat.load_module` function: on Python 3.5+, the module is no longer inserted in `sys.modules`. All non-test calls did `del sys.modules[self.module_id]` right after the call, anyway. On older Python, the module is inserted and then deleted. (Some additional `DeprecationWarning` come from Setuptools: pypa/setuptools#2517) Closes: #328 Pull-request: #328 Pull-request-sha: 87c1d09 Change-Id: I9cb3772f6812ef14297792344caf2f9aa5337adf
pypa/setuptools#2517 pypa/setuptools#2523 (something in tox/virtualenv probably uses an older setuptools...) benjaminp/six#352 (not released yet)
Summary of changes
Fixes #2481
Pull Request Checklist
changelog.d/
.(See documentation for details) -- TODO