Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r71080:f800c32de51b
Date: 2014-04-29 16:09 -0700
http://bitbucket.org/pypy/pypy/changeset/f800c32de51b/

Log:    this is supported in py3k

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
@@ -16,12 +16,12 @@
         x = marshal.loads(s)
         assert x == case and type(x) is type(case)
 
-        exc = raises(TypeError, marshal.loads, memoryview(s))
-        assert str(exc.value) == "must be string or read-only buffer, not 
memoryview"
+        y = marshal.loads(memoryview(s))
+        assert y == case and type(y) is type(case)
 
         import sys
         if '__pypy__' in sys.builtin_module_names:
-            f = StringIO.StringIO()
+            f = BytesIO()
             marshal.dump(case, f)
             f.seek(0)
             x = marshal.load(f)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to