asyncio: Hopeful fix for issue 19765.

This commit is contained in:
Guido van Rossum 2013-11-25 10:06:34 -08:00
parent 14c3e14053
commit 27bfe468cc
1 changed files with 1 additions and 0 deletions

View File

@ -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)