[pypy-commit] pypy py3k: kill import print_function from __future__ also here, and adjust the import of StringIO
antocuni
noreply at buildbot.pypy.org
Fri Jan 27 20:29:15 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r51872:c5b8818fe586
Date: 2012-01-27 11:53 +0100
http://bitbucket.org/pypy/pypy/changeset/c5b8818fe586/
Log: kill import print_function from __future__ also here, and adjust the
import of StringIO
diff --git a/pypy/interpreter/test/test_syntax.py b/pypy/interpreter/test/test_syntax.py
--- a/pypy/interpreter/test/test_syntax.py
+++ b/pypy/interpreter/test/test_syntax.py
@@ -247,9 +247,9 @@
"""
def test_print(self):
- s = """from __future__ import print_function
-import StringIO
-s = StringIO.StringIO()
+ s = """
+from io import StringIO
+s = StringIO()
print("Hello,", "person", file=s)
"""
ns = {}
More information about the pypy-commit
mailing list