Author: Antonio Cuni <anto.c...@gmail.com>
Branch: py3k
Changeset: r51486:155402d74dfc
Date: 2012-01-19 15:50 +0100
http://bitbucket.org/pypy/pypy/changeset/155402d74dfc/

Log:    (antocuni, romain) make this test at least runnable by using a py3k
        compatible syntax. Tons of failures, of course

diff --git a/pypy/module/marshal/test/test_marshal.py 
b/pypy/module/marshal/test/test_marshal.py
--- a/pypy/module/marshal/test/test_marshal.py
+++ b/pypy/module/marshal/test/test_marshal.py
@@ -7,12 +7,13 @@
         cls.w_tmpfile = cls.space.wrap(str(tmpfile))
 
     def w_marshal_check(self, case):
-        import marshal, StringIO
+        import marshal
+        from io import StringIO
         s = marshal.dumps(case)
-        print repr(s)
+        print(repr(s))
         x = marshal.loads(s)
         assert x == case and type(x) is type(case)
-        f = StringIO.StringIO()
+        f = StringIO()
         marshal.dump(case, f)
         f.seek(0)
         x = marshal.load(f)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to