From 35f472096296e1e55422396557c24f7704faf97d Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 24 Oct 2014 00:03:27 +0300 Subject: [PATCH] uasyncio: test_http_client.py: Use run_until_complete(). --- uasyncio/test_http_client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/uasyncio/test_http_client.py b/uasyncio/test_http_client.py index 0b4ff83b..1c6cf687 100644 --- a/uasyncio/test_http_client.py +++ b/uasyncio/test_http_client.py @@ -20,6 +20,5 @@ url = "google.com" loop = asyncio.get_event_loop() #task = asyncio.async(print_http_headers(url)) #loop.run_until_complete(task) -loop.call_soon(print_http_headers(url)) -loop.run_forever() +loop.run_until_complete(print_http_headers(url)) loop.close()