Enable testing with Python 3.11 (#9511)

This commit is contained in:
Bruno Oliveira
2022-02-11 12:20:42 -03:00
committed by GitHub
parent 6828ec2f9b
commit b79eff065e
7 changed files with 47 additions and 9 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(
"""