From 27bfe468cc69ad83e0b0aaaf60bf368d6ba44a4d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 25 Nov 2013 10:06:34 -0800 Subject: [PATCH] asyncio: Hopeful fix for issue 19765. --- Lib/test/test_asyncio/test_events.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index a9c6385c95a..6abc72435af 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -560,6 +560,7 @@ class EventLoopTestsMixin: client.connect(('127.0.0.1', port)) client.sendall(b'xxx') test_utils.run_briefly(self.loop) + test_utils.run_until(self.loop, lambda: proto is not None, 10) self.assertIsInstance(proto, MyProto) self.assertEqual('INITIAL', proto.state) test_utils.run_briefly(self.loop)