[pypy-commit] pypy default: generalize this test to work on py3k also
bdkearns
noreply at buildbot.pypy.org
Fri Mar 15 22:27:58 CET 2013
Author: Brian Kearns <bdkearns at gmail.com>
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'
More information about the pypy-commit
mailing list