mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-04 20:33:13 +03:00
fix: skip tests for removed functions
This commit is contained in:
parent
c1430e99ec
commit
ac320f9d8d
|
@ -1,6 +1,7 @@
|
||||||
"""AbstractCoroutine provider tests."""
|
"""AbstractCoroutine provider tests."""
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
import sys
|
||||||
|
|
||||||
from dependency_injector import providers, errors
|
from dependency_injector import providers, errors
|
||||||
from pytest import mark, raises
|
from pytest import mark, raises
|
||||||
|
@ -12,6 +13,7 @@ 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.asyncio
|
@mark.asyncio
|
||||||
@mark.filterwarnings("ignore")
|
@mark.filterwarnings("ignore")
|
||||||
async def test_call_overridden_by_coroutine():
|
async def test_call_overridden_by_coroutine():
|
||||||
|
@ -26,6 +28,7 @@ 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.asyncio
|
@mark.asyncio
|
||||||
@mark.filterwarnings("ignore")
|
@mark.filterwarnings("ignore")
|
||||||
async def test_call_overridden_by_delegated_coroutine():
|
async def test_call_overridden_by_delegated_coroutine():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user