Skip to content

Commit

Permalink
python 3.11 fixes: coroutine was removed
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Jan 23, 2022
1 parent e37d84c commit ec594d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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
Expand Down Expand Up @@ -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(
"""
Expand Down

0 comments on commit ec594d6

Please sign in to comment.