Author: Brian Kearns <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to