Skip to content

Commit e51cd4d

Browse files
Vizonexseifertm
authored andcommitted
other commits outside of this fork screwed this up, let me fix that...
1 parent e16a1d4 commit e51cd4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pytest_asyncio/plugin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,8 +847,10 @@ def _scoped_runner(
847847
# We need to get the factory now because
848848
# _temporary_event_loop_policy can override the Runner
849849
factory = _get_loop_facotry(request)
850+
debug_mode = _get_asyncio_debug(request.config)
850851
with _temporary_event_loop_policy(new_loop_policy, factory):
851-
runner = Runner(loop_factory=factory).__enter__()
852+
runner = Runner(debug=debug_mode, loop_factory=factory).__enter__()
853+
852854
try:
853855
yield runner
854856
except Exception as e:

0 commit comments

Comments
 (0)