Author: Matti Picus <[email protected]>
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()
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit