Skip to content

Commit

Permalink
Minor implementation improvement to test_async
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucretiel committed Aug 2, 2015
1 parent cdb79a0 commit 525df02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def context_loop():
# Can't reuse new_loop() because some tests require new_loop and
# context_loop to be different
with closing(asyncio.new_event_loop()) as new_loop:
with temporary_context_loop(new_loop) as loop:
yield loop
with temporary_context_loop(new_loop):
yield new_loop


def test_basic_autoasync(context_loop):
Expand Down

0 comments on commit 525df02

Please sign in to comment.