-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
When I run the testsuite, two tests fail and it seems the reason is the incompatibility with the latest importlib-metadata:
=================================== FAILURES ===================================
___________________________ test_adding_entry_point ____________________________
def test_adding_entry_point():
original_entry_points = entry_points(group="docstring_to_markdown")
> mock_entry_point = MockEntryPoint(
name='high-priority-converter',
group='docstring_to_markdown',
value=HighPriorityConverter,
)
tests/test_convert.py:111:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.13/site-packages/importlib_metadata/__init__.py:214: in __init__
self.module
/usr/lib/python3.13/site-packages/importlib_metadata/__init__.py:227: in module
return self._match.module
/usr/lib64/python3.13/functools.py:1026: in __get__
val = self.func(instance)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = EntryPoint(name='high-priority-converter', value=<class 'test_convert.HighPriorityConverter'>, group='docstring_to_markdown')
@functools.cached_property
def _match(self) -> _EntryPointMatch:
> match = self.pattern.match(self.value)
E TypeError: expected string or bytes-like object, got '_ProtocolMeta'
/usr/lib/python3.13/site-packages/importlib_metadata/__init__.py:239: TypeError
__________________________ test_replacing_entry_point __________________________
def test_replacing_entry_point():
assert convert(CPYTHON) == CPYTHON_MD
original_entry_points = entry_points(group="docstring_to_markdown")
> mock_entry_point = DistMockEntryPoint(
name='cpython',
group='docstring_to_markdown',
value=CustomCPythonConverter
)
tests/test_convert.py:123:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.13/site-packages/importlib_metadata/__init__.py:214: in __init__
self.module
/usr/lib/python3.13/site-packages/importlib_metadata/__init__.py:227: in module
return self._match.module
/usr/lib64/python3.13/functools.py:1026: in __get__
val = self.func(instance)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = EntryPoint(name='cpython', value=<class 'test_convert.CustomCPythonConverter'>, group='docstring_to_markdown')
@functools.cached_property
def _match(self) -> _EntryPointMatch:
> match = self.pattern.match(self.value)
E TypeError: expected string or bytes-like object, got '_ProtocolMeta'
/usr/lib/python3.13/site-packages/importlib_metadata/__init__.py:239: TypeError
=========================== short test summary info ============================
FAILED tests/test_convert.py::test_adding_entry_point - TypeError: expected string or bytes-like object, got '_ProtocolMeta'
FAILED tests/test_convert.py::test_replacing_entry_point - TypeError: expected string or bytes-like object, got '_ProtocolMeta'
======================== 2 failed, 101 passed in 0.20s =========================
Metadata
Metadata
Assignees
Labels
No labels