Author: Antonio Cuni <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit