[pypy-commit] pypy py3k-stdlib-2.7.6-merge: adapt to py3
pjenvey
noreply at buildbot.pypy.org
Wed Mar 12 21:05:34 CET 2014
Author: Philip Jenvey <pjenvey at underboss.org>
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)
More information about the pypy-commit
mailing list