Update test skip decorators

This commit is contained in:
Roman Mogylatov 2022-12-18 14:58:39 -05:00
parent 36f25dc8de
commit c1a9c6b9be

View File

@ -13,10 +13,9 @@ def test_inheritance():
assert isinstance(providers.AbstractCoroutine(example), providers.Coroutine) assert isinstance(providers.AbstractCoroutine(example), providers.Coroutine)
@mark.skipif(sys.version_info > (3, 10), reason="asyncio.coroutine removed in 3.11") @mark.skipif(sys.version_info >= (3, 11), reason="asyncio.coroutine removed in Python 3.11")
@mark.asyncio @mark.asyncio
@mark.filterwarnings("ignore") @mark.filterwarnings("ignore")
@mark.skipif(sys.version_info >= (3, 11), reason="Cannot be executed on Python 3.11 or newer")
async def test_call_overridden_by_coroutine(): async def test_call_overridden_by_coroutine():
@asyncio.coroutine @asyncio.coroutine
def abstract_example(): def abstract_example():
@ -29,10 +28,9 @@ async def test_call_overridden_by_coroutine():
assert result == (1, 2, 3, 4) assert result == (1, 2, 3, 4)
@mark.skipif(sys.version_info > (3, 10), reason="asyncio.coroutine removed in 3.11") @mark.skipif(sys.version_info >= (3, 11), reason="asyncio.coroutine removed in Python 3.11")
@mark.asyncio @mark.asyncio
@mark.filterwarnings("ignore") @mark.filterwarnings("ignore")
@mark.skipif(sys.version_info >= (3, 11), reason="Cannot be executed on Python 3.11 or newer")
async def test_call_overridden_by_delegated_coroutine(): async def test_call_overridden_by_delegated_coroutine():
@asyncio.coroutine @asyncio.coroutine
def abstract_example(): def abstract_example():