File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,4 +47,5 @@ def pytest_pyfunc_call(pyfuncitem):
4747 if inspect .iscoroutinefunction (pyfuncitem .obj ):
4848 pyfuncitem .obj = pytest .mark .trio (pyfuncitem .obj )
4949
50+
5051asyncio .set_event_loop_policy (trio_asyncio .TrioPolicy ())
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ def set_event_loop(self, loop):
9898 # in a sub-task, which is exactly what we intend to be possible
9999 if self ._trio_local ._loop is not None and loop is not None and \
100100 self ._trio_local ._task == task :
101- raise RuntimeError ('You cannot replace an event loop.' ,self ._trio_local ._loop ,loop )
101+ raise RuntimeError ('You cannot replace an event loop.' , self ._trio_local ._loop , loop )
102102 self ._trio_local ._loop = loop
103103 self ._trio_local ._task = task
104104
@@ -230,4 +230,3 @@ async def _run_task(proc, args):
230230 return await proc (* args )
231231
232232 trio .run (_run_task , proc , args )
233-
You can’t perform that action at this time.
0 commit comments