From c1a9c6b9beef8fe3c57f3b98c11ae134cfe556c3 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Sun, 18 Dec 2022 14:58:39 -0500 Subject: [PATCH] Update test skip decorators --- .../providers/coroutines/test_abstract_coroutine_py35.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/unit/providers/coroutines/test_abstract_coroutine_py35.py b/tests/unit/providers/coroutines/test_abstract_coroutine_py35.py index 5a078664..d1a760f8 100644 --- a/tests/unit/providers/coroutines/test_abstract_coroutine_py35.py +++ b/tests/unit/providers/coroutines/test_abstract_coroutine_py35.py @@ -13,10 +13,9 @@ def test_inheritance(): 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.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(): @asyncio.coroutine def abstract_example(): @@ -29,10 +28,9 @@ async def test_call_overridden_by_coroutine(): 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.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(): @asyncio.coroutine def abstract_example():