Skip to content

Commit

Permalink
do not call set_debug if it is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay Kim committed Feb 16, 2017
1 parent a156f3d commit 44cde0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aiohttp/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ def loop(request):
debug = request.config.getoption('--enable-loop-debug')

with loop_context(request.param, fast=fast) as _loop:
_loop.set_debug(debug)
if debug:
_loop.set_debug(True)
yield _loop


Expand Down

0 comments on commit 44cde0b

Please sign in to comment.