[pypy-commit] pypy default: Fix the test on Linux.
arigo
noreply at buildbot.pypy.org
Sun Jun 3 16:10:43 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r55284:f94ef1d4068a
Date: 2012-06-03 16:10 +0200
http://bitbucket.org/pypy/pypy/changeset/f94ef1d4068a/
Log: Fix the test on Linux.
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
@@ -618,9 +618,12 @@
except timeout:
pass
t.recv(count)
- # test sendall() timeout, be sure to send data larger than the
- # socket buffer
- raises(timeout, cli.sendall, 'foobar' * 7000)
+ # test sendall() timeout
+ try:
+ while 1:
+ cli.sendall('foobar' * 70)
+ except timeout:
+ pass
# done
cli.close()
t.close()
More information about the pypy-commit
mailing list