[issue19765] test_asyncio: test_create_server() failed on "x86 Windows Server 2008 [SB] 3.x"

Guido van Rossum report at bugs.python.org
Mon Nov 25 16:49:31 CET 2013


Guido van Rossum added the comment:

Can you try this fix?

diff -r 8d0206f97439 Lib/test/test_asyncio/test_events.py
--- a/Lib/test/test_asyncio/test_events.py      Sun Nov 24 22:41:35 2013 -0800
+++ b/Lib/test/test_asyncio/test_events.py      Mon Nov 25 07:48:29 2013 -0800
@@ -559,7 +559,7 @@
         client = socket.socket()
         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)

(I can also just commit that and the test_unix_events.py fix for AIX and hope for the best.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19765>
_______________________________________


More information about the Python-bugs-list mailing list