From: Guido van Rossum Date: Mon, 25 Nov 2013 18:06:34 +0000 (-0800) Subject: asyncio: Hopeful fix for issue 19765. X-Git-Tag: v3.4.0b2~489 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27bfe468cc69ad83e0b0aaaf60bf368d6ba44a4d;p=thirdparty%2FPython%2Fcpython.git asyncio: Hopeful fix for issue 19765. --- diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index a9c6385c95a5..6abc72435af5 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)