[pypy-commit] pypy stdlib-2.7.6: more hacking at this test
bdkearns
noreply at buildbot.pypy.org
Wed Mar 5 07:14:07 CET 2014
Author: Brian Kearns <bdkearns at gmail.com>
Branch: stdlib-2.7.6
Changeset: r69703:9f7c1ad59171
Date: 2014-03-05 06:13 +0000
http://bitbucket.org/pypy/pypy/changeset/9f7c1ad59171/
Log: more hacking at this test
diff --git a/pypy/module/select/test/test_select.py b/pypy/module/select/test/test_select.py
--- a/pypy/module/select/test/test_select.py
+++ b/pypy/module/select/test/test_select.py
@@ -270,7 +270,8 @@
t = thread.start_new_thread(pollster.poll, ())
try:
- time.sleep(0.1); print '', # print to release GIL untranslated
+ time.sleep(0.1)
+ for i in range(5): print '', # to release GIL untranslated
# trigger ufds array reallocation
for fd in rfds:
pollster.unregister(fd)
@@ -280,7 +281,8 @@
finally:
# and make the call to poll() from the thread return
os.write(w, b'spam')
- time.sleep(0.1); print '', # print to release GIL untranslated
+ time.sleep(0.1)
+ for i in range(5): print '', # to release GIL untranslated
finally:
os.close(r)
os.close(w)
More information about the pypy-commit
mailing list