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
test_importlib uses deprecated SelectableGroups interface #88947
Comments
% ./python.exe -E -We -m test -v test_importlib .... ====================================================================== Traceback (most recent call last):
File "/Users/iritkatriel/src/cpython-1/Lib/test/test_importlib/test_metadata_api.py", line 165, in test_entry_points_groups_get
entry_points().get('missing', 'default') == 'default'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/iritkatriel/src/cpython-1/Lib/importlib/metadata/__init__.py", line 400, in get
self._warn()
^^^^^^^^^^^^
DeprecationWarning: SelectableGroups dict interface is deprecated. Use select. ====================================================================== Traceback (most recent call last):
File "/Users/iritkatriel/src/cpython-1/Lib/test/test_importlib/test_metadata_api.py", line 155, in test_entry_points_groups_getitem
entry_points()['entries'] == entry_points(group='entries')
~~~~~~~~~~~~~~^^^^^^^^^^^
File "/Users/iritkatriel/src/cpython-1/Lib/importlib/metadata/__init__.py", line 396, in __getitem__
self._warn()
^^^^^^^^^^^^
DeprecationWarning: SelectableGroups dict interface is deprecated. Use select. |
In addition to the two reported, there are two others:
that also fail. I've been able to replicate the issue in importlib_metadata, so I'll fix it there first. |
All four of those tests had used |
Patch at python/importlib_metadata#333. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: