Author: Philip Jenvey <[email protected]>
Branch: py3k-stdlib-2.7.6-merge
Changeset: r69908:394bfcf9e463
Date: 2014-03-12 13:04 -0700
http://bitbucket.org/pypy/pypy/changeset/394bfcf9e463/

Log:    adapt to py3

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
@@ -258,7 +258,7 @@
         return FileAsSocket(s1), FileAsSocket(s2)
 
     def test_poll_threaded(self):
-        import os, select, thread, time
+        import os, select, _thread as thread, time
         if not hasattr(select, 'poll'):
             skip("no select.poll() on this platform")
         r, w = os.pipe()
@@ -271,7 +271,7 @@
             t = thread.start_new_thread(pollster.poll, ())
             try:
                 time.sleep(0.1)
-                for i in range(5): print '',  # to release GIL untranslated
+                for i in range(5): print(''),  # to release GIL untranslated
                 # trigger ufds array reallocation
                 for fd in rfds:
                     pollster.unregister(fd)
@@ -282,7 +282,7 @@
                 # and make the call to poll() from the thread return
                 os.write(w, b'spam')
                 time.sleep(0.1)
-                for i in range(5): print '',  # to release GIL untranslated
+                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