Description: Removed @asyncio.coroutine decorator
 This is deprecated earlier, and removed from Python 3.12
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2024-08-28

--- python-opentracing-2.4.0.orig/tests/scope_managers/test_asyncio.py
+++ python-opentracing-2.4.0/tests/scope_managers/test_asyncio.py
@@ -35,8 +35,7 @@ class AsyncioCompabilityCheck(TestCase,
         return AsyncioScopeManager()
 
     def run_test(self, test_fn):
-        @asyncio.coroutine
-        def async_test_fn():
+        async def async_test_fn():
             test_fn()
         asyncio.get_event_loop().run_until_complete(async_test_fn())
 
--- python-opentracing-2.4.0.orig/tests/scope_managers/test_contextvars.py
+++ python-opentracing-2.4.0/tests/scope_managers/test_contextvars.py
@@ -36,8 +36,7 @@ class AsyncioContextVarsCompabilityCheck
         return ContextVarsScopeManager()
 
     def run_test(self, test_fn):
-        @asyncio.coroutine
-        def async_test_fn():
+        async def async_test_fn():
             test_fn()
         asyncio.get_event_loop().run_until_complete(async_test_fn())
 
