Skip to content

Revert dropping pkg_resources from PackageLoader for 2.11#1182

Merged
davidism merged 3 commits into2.11.xfrom
revert-package-loader
Mar 30, 2020
Merged

Revert dropping pkg_resources from PackageLoader for 2.11#1182
davidism merged 3 commits into2.11.xfrom
revert-package-loader

Conversation

@davidism
Copy link
Copy Markdown
Member

#1168 reports that PackageLoader no longer works when the package is being tested by Pytest. This is because the rewrite to remove pkg_resources depends on Pytest's rewrite hook providing behavior that is only optional according to PEP 451. The fix was to use other APIs provided by PEP 451 #1169, but that turned out to be incompatible with Python 2. Therefore the changes are reverted in 2.11, and instead will only be present in 3.0.

@davidism davidism added this to the 2.11.2 milestone Mar 30, 2020
@davidism davidism force-pushed the revert-package-loader branch from f9bf2ad to 35a2ba5 Compare March 30, 2020 17:31
@davidism davidism merged commit 07b5c01 into 2.11.x Mar 30, 2020
@davidism davidism deleted the revert-package-loader branch March 30, 2020 17:34
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant