python 3.11 fixes: coroutine was removed

This commit is contained in:
Anthony Sottile 2022-01-23 13:56:10 -05:00 committed by Bruno Oliveira
parent 286a2bcadb
commit 9234062545
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import enum
import sys
from functools import partial
from functools import wraps
from typing import TYPE_CHECKING
@ -91,6 +92,7 @@ def test_get_real_func_partial() -> None:
assert get_real_func(partial(foo)) is foo
@pytest.mark.skipif(sys.version_info >= (3, 11), reason="couroutine removed")
def test_is_generator_asyncio(pytester: Pytester) -> None:
pytester.makepyfile(
"""