Skip to content

Commit

Permalink
minor test refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasAubry committed Aug 15, 2017
1 parent 53c4abf commit 09cc457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/common_test/parallel_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ def test_no_loop_uses_default(self):

@async_test()
async def test_consume_do_not_block_on_exception(self, loop):
async def coro0():
async def coro_with_exception():
raise Exception()

coro = make_mocked_coro()
worker = ParallelWorker(1, loop=loop)
await worker.request(coro0)
await worker.request(coro_with_exception)
await worker.request(coro)
with async_timeout.timeout(timeout=0.01, loop=loop):
await worker.wait()
Expand Down

0 comments on commit 09cc457

Please sign in to comment.