Commits

Antonio Cuni committed 55b648c

use bytes, not str with marshal.loads

Comments (0)

Files changed (1)

pypy/module/marshal/test/test_marshal.py

 
     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