[pypy-commit] pypy py3.5: 2to3

mjacob pypy.commits at gmail.com
Tue Jan 3 19:39:25 EST 2017


Author: Manuel Jacob <me at manueljacob.de>
Branch: py3.5
Changeset: r89352:a222998f6e68
Date: 2017-01-04 01:38 +0100
http://bitbucket.org/pypy/pypy/changeset/a222998f6e68/

Log:	2to3

diff --git a/pypy/module/mmap/test/test_mmap.py b/pypy/module/mmap/test/test_mmap.py
--- a/pypy/module/mmap/test/test_mmap.py
+++ b/pypy/module/mmap/test/test_mmap.py
@@ -857,11 +857,11 @@
         except SystemError:
             skip("resizing not supported")
         assert m.tell() == 5000
-        assert m.read(14) == ''
-        assert m.read(-1) == ''
+        assert m.read(14) == b''
+        assert m.read(-1) == b''
         raises(ValueError, m.read_byte)
-        assert m.readline() == ''
-        raises(ValueError, m.write_byte, 'b')
-        raises(ValueError, m.write, 'abc')
+        assert m.readline() == b''
+        raises(ValueError, m.write_byte, ord(b'b'))
+        raises(ValueError, m.write, b'abc')
         assert m.tell() == 5000
         m.close()


More information about the pypy-commit mailing list