Mark `test_restify_Annotated` as an expected failure

This commit is contained in:
Adam Turner 2024-04-25 03:07:48 +01:00
parent 6b70620993
commit 50895827ba

View File

@ -187,6 +187,7 @@ def test_restify_type_hints_containers():
"[:py:obj:`None`]")
@pytest.mark.xfail(sys.version_info[:2] <= (3, 11), reason='Needs fixing.')
def test_restify_Annotated():
assert restify(Annotated[str, "foo", "bar"]) == ':py:class:`~typing.Annotated`\\ [:py:class:`str`]'
assert restify(Annotated[str, "foo", "bar"], 'smart') == ':py:class:`~typing.Annotated`\\ [:py:class:`str`]'