[pypy-svn] r42135 - pypy/dist/pypy/rlib/test
afa at codespeak.net
afa at codespeak.net
Tue Apr 17 20:36:01 CEST 2007
Author: afa
Date: Tue Apr 17 20:36:00 2007
New Revision: 42135
Modified:
pypy/dist/pypy/rlib/test/test_rsocket.py
Log:
rsocket intermittent failure: win32 sockets seem to need a few cycles to transfer data
Modified: pypy/dist/pypy/rlib/test/test_rsocket.py
==============================================================================
--- pypy/dist/pypy/rlib/test/test_rsocket.py (original)
+++ pypy/dist/pypy/rlib/test/test_rsocket.py Tue Apr 17 20:36:00 2007
@@ -162,6 +162,8 @@
assert err in (0, errno.EISCONN)
s1.send('?')
+ import time
+ time.sleep(0.01) # Windows needs some time to transfer data
buf = s2.recv(100)
assert buf == '?'
err = py.test.raises(CSocketError, s1.recv, 5000)
More information about the pypy-svn
mailing list