Author: Matti Picus <[email protected]>
Branch: cpyext-ext
Changeset: r84899:a884eb833aa5
Date: 2016-06-03 15:52 +0300
http://bitbucket.org/pypy/pypy/changeset/a884eb833aa5/

Log:    fix test - buffer(bytearray) succeeds

diff --git a/pypy/objspace/std/test/test_bufferobject.py 
b/pypy/objspace/std/test/test_bufferobject.py
--- a/pypy/objspace/std/test/test_bufferobject.py
+++ b/pypy/objspace/std/test/test_bufferobject.py
@@ -201,5 +201,5 @@
     def test_pypy_raw_address_base(self):
         raises(ValueError, buffer("foobar")._pypy_raw_address)
         raises(ValueError, buffer(u"foobar")._pypy_raw_address)
-        e = raises(ValueError, buffer(bytearray("foobar"))._pypy_raw_address)
-        assert 'BytearrayBuffer' in str(e.value)
+        a = buffer(bytearray("foobar"))._pypy_raw_address()
+        assert a != 0
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to