From ec594d6824a4e7f7c7f7ed80c98b977e72c2f98c Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 23 Jan 2022 13:56:10 -0500 Subject: [PATCH] python 3.11 fixes: coroutine was removed --- testing/test_compat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/test_compat.py b/testing/test_compat.py index 88f0f33efc..8a80fd625d 100644 --- a/testing/test_compat.py +++ b/testing/test_compat.py @@ -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 foo(x): 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( """