aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/pytest-asyncio/patches/02-return-asyncio-function-result-for-canonization.patch
blob: 2453eb4729a4bdd7d54aa9238a75bb6f3dfde416 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- contrib/python/pytest-asyncio/pytest_asyncio/plugin.py	(index)
+++ contrib/python/pytest-asyncio/pytest_asyncio/plugin.py	(working tree)
@@ -522,7 +522,7 @@ def wrap_in_sync(
             return
         task = asyncio.ensure_future(coro, loop=_loop)
         try:
-            _loop.run_until_complete(task)
+            return _loop.run_until_complete(task)
         except BaseException:
             # run_until_complete doesn't get the result from exceptions
             # that are not subclasses of `Exception`. Consume all