Skip to content

Commit 2761766

Browse files
committed
… and the usual YAPF.
1 parent dd61f77 commit 2761766

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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+
5051
asyncio.set_event_loop_policy(trio_asyncio.TrioPolicy())

trio_asyncio/loop.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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-

0 commit comments

Comments
 (0)