summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_asyncio/test_base_events.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index 72c63df..a14c556 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -1855,9 +1855,10 @@ class BaseLoopSockSendfileTests(test_utils.TestCase):
for _ in range(10):
try:
- self.run_loop(self.loop.sock_connect(sock, (support.HOST, port)))
+ self.run_loop(self.loop.sock_connect(sock,
+ (support.HOST, port)))
except OSError:
- time.sleep(0.5)
+ self.run_loop(asyncio.sleep(0.5))
continue
else:
break