[pypy-commit] pypy py3k: py3k-ify this test

antocuni noreply at buildbot.pypy.org
Thu Feb 9 14:38:27 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52278:2fe5fa84aab4
Date: 2012-02-09 14:38 +0100
http://bitbucket.org/pypy/pypy/changeset/2fe5fa84aab4/

Log:	py3k-ify this test

diff --git a/pypy/interpreter/test/test_compiler.py b/pypy/interpreter/test/test_compiler.py
--- a/pypy/interpreter/test/test_compiler.py
+++ b/pypy/interpreter/test/test_compiler.py
@@ -821,7 +821,7 @@
 
     def test_folding_of_binops_on_constants(self):
         def disassemble(func):
-            from StringIO import StringIO
+            from io import StringIO
             import sys, dis
             f = StringIO()
             tmp = sys.stdout
@@ -853,7 +853,7 @@
             ('a = 13 | 7', '(15)'),                 # binary or
             ):
             asm = dis_single(line)
-            print asm
+            print(asm)
             assert elem in asm, 'ELEMENT not in asm'
             assert 'BINARY_' not in asm, 'BINARY_in_asm'
 


More information about the pypy-commit mailing list