[pypy-commit] pypy py3k: use bytes, not str with marshal.loads
antocuni
noreply at buildbot.pypy.org
Tue Mar 20 15:52:45 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r53835:55b648c8bad1
Date: 2012-03-20 15:52 +0100
http://bitbucket.org/pypy/pypy/changeset/55b648c8bad1/
Log: use bytes, not str with marshal.loads
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
@@ -176,7 +176,7 @@
def test_bad_typecode(self):
import marshal
- exc = raises(ValueError, marshal.loads, chr(1))
+ exc = raises(ValueError, marshal.loads, b'\x01')
assert r"'\x01'" in exc.value.message
More information about the pypy-commit
mailing list