blob: 60edde6fb8943d2067df9d9d875e5a7a7de2ee6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
diff --git a/tests/scope_managers/test_asyncio.py b/tests/scope_managers/test_asyncio.py
index 14079c4..450260b 100644
--- a/tests/scope_managers/test_asyncio.py
+++ b/tests/scope_managers/test_asyncio.py
@@ -35,8 +35,8 @@ class AsyncioCompabilityCheck(TestCase, ScopeCompatibilityCheckMixin):
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())
diff --git a/tests/scope_managers/test_contextvars.py b/tests/scope_managers/test_contextvars.py
index dd1820f..be7587f 100644
--- a/tests/scope_managers/test_contextvars.py
+++ b/tests/scope_managers/test_contextvars.py
@@ -36,8 +36,8 @@ 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())
|