Commits

Brian Kearns committed 5d0ade0

generalize this test to work on py3k also

Comments (0)

Files changed (1)

pypy/module/test_lib_pypy/test_marshal_extra.py

     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'