[pypy-commit] pypy cpyext-ext: fix test, same as a884eb833aa5

arigo pypy.commits at gmail.com
Fri Jun 3 09:28:40 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: cpyext-ext
Changeset: r84902:686345719452
Date: 2016-06-03 15:29 +0200
http://bitbucket.org/pypy/pypy/changeset/686345719452/

Log:	fix test, same as a884eb833aa5

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
@@ -57,5 +57,5 @@
 
     def test_pypy_raw_address_base(self):
         raises(ValueError, memoryview("foobar")._pypy_raw_address)
-        e = raises(ValueError, memoryview(bytearray("foobar"))._pypy_raw_address)
-        assert 'BytearrayBuffer' in str(e.value)
+        a = memoryview(bytearray("foobar"))._pypy_raw_address()
+        assert a != 0


More information about the pypy-commit mailing list