[pypy-commit] pypy default: revert test to pre-win32-cleanup2 version

mattip noreply at buildbot.pypy.org
Tue May 8 23:04:03 CEST 2012


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r54978:89ed5aadced0
Date: 2012-05-09 00:03 +0300
http://bitbucket.org/pypy/pypy/changeset/89ed5aadced0/

Log:	revert test to pre-win32-cleanup2 version

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
@@ -616,11 +616,9 @@
                 cli.send('foobar' * 70)
         except timeout:
             pass
-        # test sendall() timeout
-        try:
-            cli.sendall('foobar'*70)
-        except timeout:
-            pass
+        # test sendall() timeout, be sure to send data larger than the
+        # socket buffer
+        raises(timeout, cli.sendall, 'foobar' * 7000)
         # done
         cli.close()
         t.close()


More information about the pypy-commit mailing list