upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-opentracing / repos / community-any / python-3.11-compat.patch
blob4761c7bea27e99b35672ddfa9d35fef2a6069ae1
1 From 4cb5d333eabcb05153a586dc1a7db0df555f0453 Mon Sep 17 00:00:00 2001
2 From: "Benjamin A. Beasley" <code@musicinmybrain.net>
3 Date: Sat, 11 Jun 2022 08:35:03 -0400
4 Subject: [PATCH] =?UTF-8?q?Replace=20@asyncio.coroutine=20with=20=E2=80=9C?=
5 =?UTF-8?q?async=20def=E2=80=9D?=
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 ---
11 tests/scope_managers/test_asyncio.py | 3 +--
12 tests/scope_managers/test_contextvars.py | 3 +--
13 2 files changed, 2 insertions(+), 4 deletions(-)
15 diff --git a/tests/scope_managers/test_asyncio.py b/tests/scope_managers/test_asyncio.py
16 index 14079c4..4817f80 100644
17 --- a/tests/scope_managers/test_asyncio.py
18 +++ b/tests/scope_managers/test_asyncio.py
19 @@ -35,8 +35,7 @@ def scope_manager(self):
20 return AsyncioScopeManager()
22 def run_test(self, test_fn):
23 - @asyncio.coroutine
24 - def async_test_fn():
25 + async def async_test_fn():
26 test_fn()
27 asyncio.get_event_loop().run_until_complete(async_test_fn())
29 diff --git a/tests/scope_managers/test_contextvars.py b/tests/scope_managers/test_contextvars.py
30 index dd1820f..c8c6f61 100644
31 --- a/tests/scope_managers/test_contextvars.py
32 +++ b/tests/scope_managers/test_contextvars.py
33 @@ -36,8 +36,7 @@ def scope_manager(self):
34 return ContextVarsScopeManager()
36 def run_test(self, test_fn):
37 - @asyncio.coroutine
38 - def async_test_fn():
39 + async def async_test_fn():
40 test_fn()
41 asyncio.get_event_loop().run_until_complete(async_test_fn())