Skip to content

Commit f34134d

Browse files
committed
Do not return from async tests
1 parent 2e4a992 commit f34134d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ def allow_windows(test_method):
2828
async def wrapped(self, *args, **kwargs):
2929
_ThreadedLoopAdapter.start(id(test_method))
3030
coro = test_method(self, *args, **kwargs)
31-
future = asyncio.run_coroutine_threadsafe(coro=coro, loop=_ThreadedLoopAdapter._loop)
32-
return future.result()
31+
asyncio.run_coroutine_threadsafe(coro=coro, loop=_ThreadedLoopAdapter._loop).result()
3332

3433
return wrapped
3534

0 commit comments

Comments
 (0)