Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r62364:5d0ade08b064
Date: 2013-03-15 17:27 -0400
http://bitbucket.org/pypy/pypy/changeset/5d0ade08b064/

Log:    generalize this test to work on py3k also

diff --git a/pypy/module/test_lib_pypy/test_marshal_extra.py 
b/pypy/module/test_lib_pypy/test_marshal_extra.py
--- a/pypy/module/test_lib_pypy/test_marshal_extra.py
+++ b/pypy/module/test_lib_pypy/test_marshal_extra.py
@@ -147,6 +147,6 @@
     py.test.raises(EOFError, marshal.loads, s)
 
 def test_dump_unicode_length():
-    s = u'123\xe9'
+    s = b'123\xe9'.decode('latin-1')
     r = marshal.dumps(s)
     assert r == b'u\x05\x00\x00\x00123\xc3\xa9'
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to