Skip to content

Commit d663782

Browse files
committed
Coverage fix.
1 parent f410086 commit d663782

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

tests/multiloop/test_alternative_loops.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def test_forbid_global_loop(event_loop):
1717
yield from asyncio.sleep(0.01, loop=event_loop)
1818
with pytest.raises(Exception):
1919
asyncio.get_event_loop()
20+
with pytest.raises(Exception):
21+
asyncio.set_event_loop(None)
2022

2123
@pytest.mark.asyncio
2224
@asyncio.coroutine

tests/test_simple.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
@asyncio.coroutine
1010
def async_coro(loop):
11+
"""A very simple coroutine."""
1112
yield from asyncio.sleep(0, loop=loop)
1213
return 'ok'
1314

tests/test_simple_35.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ async def run_test():
6363
for port in port1, port2, port3:
6464
with pytest.raises(IOError):
6565
await asyncio.start_server(closer, host='localhost',
66-
port=port,
67-
loop=event_loop)
66+
port=port,
67+
loop=event_loop)
6868

6969
server1.close()
7070
await server1.wait_closed()

0 commit comments

Comments
 (0)