Author: Manuel Jacob
Branch: py3k-memoryview
Changeset: r71635:2528ab74488e
Date: 2014-05-21 22:02 +0200
http://bitbucket.org/pypy/pypy/changeset/2528ab74488e/

Log:    2to3

diff --git a/pypy/module/array/test/test_array.py 
b/pypy/module/array/test/test_array.py
--- a/pypy/module/array/test/test_array.py
+++ b/pypy/module/array/test/test_array.py
@@ -1045,7 +1045,7 @@
         raises(TypeError, "a[MyInt(0):MyInt(5)]")
 
     def test_fresh_array_buffer_str(self):
-        assert str(buffer(self.array('i'))) == ''
+        assert memoryview(self.array('i')).tobytes() == b''
 
 
 class AppTestArrayBuiltinShortcut(AppTestArray):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to