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 authored and nicoddemus committed Feb 11, 2022
1 parent 286a2bc commit 9234062
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testing/test_compat.py
Original file line number Diff line number Diff line change
@@ -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 9234062

Please sign in to comment.