From c719fdcee603a5a706a45d10cb598762d56a727d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 25 Sep 2021 20:21:45 +0100 Subject: gentoo resync : 25.09.2021 --- ...ws-xray-sdk-python-2.8.0-fix-py3.10-loops.patch | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 dev-python/aws-xray-sdk-python/files/aws-xray-sdk-python-2.8.0-fix-py3.10-loops.patch (limited to 'dev-python/aws-xray-sdk-python/files') diff --git a/dev-python/aws-xray-sdk-python/files/aws-xray-sdk-python-2.8.0-fix-py3.10-loops.patch b/dev-python/aws-xray-sdk-python/files/aws-xray-sdk-python-2.8.0-fix-py3.10-loops.patch new file mode 100644 index 000000000000..cde91a8d0cda --- /dev/null +++ b/dev-python/aws-xray-sdk-python/files/aws-xray-sdk-python-2.8.0-fix-py3.10-loops.patch @@ -0,0 +1,36 @@ +diff --git a/tests/ext/aiohttp/test_middleware.py b/tests/ext/aiohttp/test_middleware.py +index c8b2333..4f8cac6 100644 +--- a/tests/ext/aiohttp/test_middleware.py ++++ b/tests/ext/aiohttp/test_middleware.py +@@ -279,8 +279,7 @@ async def test_concurrent(test_client, loop, recorder): + + await asyncio.wait([get_delay(), get_delay(), get_delay(), + get_delay(), get_delay(), get_delay(), +- get_delay(), get_delay(), get_delay()], +- loop=loop) ++ get_delay(), get_delay(), get_delay()]) + + # Ensure all ID's are different + ids = [item.id for item in recorder.emitter.local] +diff --git a/tests/test_async_local_storage.py b/tests/test_async_local_storage.py +index b43cc0e..4b13ffd 100644 +--- a/tests/test_async_local_storage.py ++++ b/tests/test_async_local_storage.py +@@ -19,7 +19,7 @@ def test_localstorage_isolation(loop): + random_int = random.random() + local_storage.randint = random_int + +- await asyncio.sleep(0.0, loop=loop) ++ await asyncio.sleep(0.0) + + current_random_int = local_storage.randint + assert random_int == current_random_int +@@ -30,7 +30,7 @@ def test_localstorage_isolation(loop): + + # Run loads of concurrent tasks + results = loop.run_until_complete( +- asyncio.wait([_test() for _ in range(0, 100)], loop=loop) ++ asyncio.wait([_test() for _ in range(0, 100)]) + ) + results = [item.result() for item in results[0]] + -- cgit v1.2.3