Skip to content

Commit ec594d6

Browse files
committed
python 3.11 fixes: coroutine was removed
1 parent e37d84c commit ec594d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testing/test_compat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import enum
2+
import sys
23
from functools import partial
34
from functools import wraps
45
from typing import TYPE_CHECKING
@@ -91,6 +92,7 @@ def foo(x):
9192
assert get_real_func(partial(foo)) is foo
9293

9394

95+
@pytest.mark.skipif(sys.version_info >= (3, 11), reason="couroutine removed")
9496
def test_is_generator_asyncio(pytester: Pytester) -> None:
9597
pytester.makepyfile(
9698
"""

0 commit comments

Comments
 (0)