Skip to content

Commit

Permalink
Fix #2409: Get rid of warnings from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Nov 3, 2017
1 parent 9b85749 commit 04f59e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ def test_run_wsgi(worker, loop):
assert loop.is_closed()


def test_handle_quit(worker):
def test_handle_quit(worker, loop):
with mock.patch('asyncio.ensure_future') as m_ensure_future:
worker.loop = mock.Mock()
worker.close = mock.Mock()
worker.handle_quit(object(), object())
assert not worker.alive
assert worker.exit_code == 0
Expand Down Expand Up @@ -185,7 +186,7 @@ def test__get_valid_log_format_exc(worker):
assert '%(name)s' in str(exc)


async def test__run_ok(worker, loop):
async def test__run_ok_tcp(worker, loop):
skip_if_no_dict(loop)

worker.ppid = 1
Expand Down

0 comments on commit 04f59e7

Please sign in to comment.