[pypy-commit] pypy py3.5: add failing test from stdlib for memoryview

plan_rich pypy.commits at gmail.com
Thu Jan 12 12:13:54 EST 2017


Author: Richard Plangger <planrichi at gmail.com>
Branch: py3.5
Changeset: r89521:de8975b7947d
Date: 2017-01-12 18:13 +0100
http://bitbucket.org/pypy/pypy/changeset/de8975b7947d/

Log:	add failing test from stdlib for memoryview

diff --git a/pypy/objspace/std/test/test_memoryobject.py b/pypy/objspace/std/test/test_memoryobject.py
--- a/pypy/objspace/std/test/test_memoryobject.py
+++ b/pypy/objspace/std/test/test_memoryobject.py
@@ -193,6 +193,12 @@
     def test_hex(self):
         assert memoryview(b"abc").hex() == u'616263'
 
+    def test_hex_long(self):
+        x = b'0' * 200000
+        m1 = memoryview(x)
+        m2 = m1[::-1]
+        assert m2.hex() == '30' * 200000
+
     def test_memoryview_cast(self):
         m1 = memoryview(b'abcdefgh')
         m2 = m1.cast('I')


More information about the pypy-commit mailing list