Author: Matti Picus <[email protected]>
Branch: 
Changeset: r55213:1275a2724732
Date: 2012-05-30 23:00 +0300
http://bitbucket.org/pypy/pypy/changeset/1275a2724732/

Log:    now test consistently fails on windows

diff --git a/pypy/module/_socket/test/test_sock_app.py 
b/pypy/module/_socket/test/test_sock_app.py
--- a/pypy/module/_socket/test/test_sock_app.py
+++ b/pypy/module/_socket/test/test_sock_app.py
@@ -611,11 +611,15 @@
         buf = t.recv(1)
         assert buf == '?'
         # test send() timeout
+        count = 0
         try:
             while 1:
-                cli.send('foobar' * 70)
+                count += cli.send('foobar' * 70)
         except timeout:
             pass
+        else:
+            assert 0,'no timeout raised'
+        t.recv(count)    
         # test sendall() timeout, be sure to send data larger than the
         # socket buffer
         raises(timeout, cli.sendall, 'foobar' * 7000)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to