def test_handle_quit(worker):
    worker.handle_quit(object(), object())
    assert not worker.alive
    assert worker.exit_code == 0
dataset/ETHPy150Open KeepSafe/aiohttp/tests/test_worker.py/test_handle_quit/original