Author: mattip <matti.pi...@gmail.com>
Branch: cpyext-ext
Changeset: r83130:16f119c9be67
Date: 2016-03-18 14:28 +0200
http://bitbucket.org/pypy/pypy/changeset/16f119c9be67/

Log:    add test that fails since ByteArray_Type's tp_as_buffer is NULL
        (line 1355 in getargs.c)

diff --git a/pypy/module/cpyext/test/test_getargs.py 
b/pypy/module/cpyext/test/test_getargs.py
--- a/pypy/module/cpyext/test/test_getargs.py
+++ b/pypy/module/cpyext/test/test_getargs.py
@@ -122,6 +122,7 @@
             PyBuffer_Release(&buf);
             return result;
             ''')
+        assert 'foo\0bar\0baz' == pybuffer(bytearray('foo\0bar\0baz'))
         assert 'foo\0bar\0baz' == pybuffer('foo\0bar\0baz')
 
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to