Commits

Brian Kearns committed 9f7c1ad

more hacking at this test

  • Participants
  • Parent commits 114c53c
  • Branches stdlib-2.7.6

Comments (0)

Files changed (1)

pypy/module/select/test/test_select.py

 
             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)
             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)