[pypy-svn] pypy default: (iko, rguillebert, arigo)
arigo
commits-noreply at bitbucket.org
Thu Apr 28 18:33:21 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r43731:81fc10496fce
Date: 2011-04-28 18:33 +0200
http://bitbucket.org/pypy/pypy/changeset/81fc10496fce/
Log: (iko, rguillebert, arigo)
Fix the test by sleeping a bit, because the character just sent may
not yet have arrived on the reading end.
diff --git a/pypy/module/_multiprocessing/test/test_connection.py b/pypy/module/_multiprocessing/test/test_connection.py
--- a/pypy/module/_multiprocessing/test/test_connection.py
+++ b/pypy/module/_multiprocessing/test/test_connection.py
@@ -48,6 +48,7 @@
assert rhandle.poll() == False
assert rhandle.poll(1) == False
whandle.send(1)
+ import time; time.sleep(0.1) # give it time to arrive :-)
assert rhandle.poll() == True
assert rhandle.poll(None) == True
assert rhandle.recv() == 1
More information about the Pypy-commit
mailing list