[New-bugs-announce] [issue44784] test_importlib uses deprecated SelectableGroups interface
Irit Katriel
report at bugs.python.org
Fri Jul 30 14:19:48 EDT 2021
New submission from Irit Katriel <iritkatriel at gmail.com>:
% ./python.exe -E -We -m test -v test_importlib
....
======================================================================
ERROR: test_entry_points_groups_get (test.test_importlib.test_metadata_api.APITests)
----------------------------------------------------------------------
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.
======================================================================
ERROR: test_entry_points_groups_getitem (test.test_importlib.test_metadata_api.APITests)
----------------------------------------------------------------------
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.
----------------------------------------------------------------------
----------
components: Tests
messages: 398598
nosy: iritkatriel
priority: normal
severity: normal
status: open
title: test_importlib uses deprecated SelectableGroups interface
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44784>
_______________________________________
More information about the New-bugs-announce
mailing list