[pypy-commit] pypy py3.5: Fix test_releasebuffer

rlamy pypy.commits at gmail.com
Sat Mar 4 05:32:27 EST 2017


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r90527:422601c23f30
Date: 2017-03-04 11:31 +0100
http://bitbucket.org/pypy/pypy/changeset/422601c23f30/

Log:	Fix test_releasebuffer

diff --git a/pypy/module/cpyext/test/test_memoryobject.py b/pypy/module/cpyext/test/test_memoryobject.py
--- a/pypy/module/cpyext/test/test_memoryobject.py
+++ b/pypy/module/cpyext/test/test_memoryobject.py
@@ -238,9 +238,9 @@
 
                 type->ht_type.tp_name = "Test";
                 type->ht_type.tp_basicsize = sizeof(PyObject);
-                type->ht_name = PyString_FromString("Test");
+                type->ht_name = PyUnicode_FromString("Test");
                 type->ht_type.tp_flags |= Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
-                                          Py_TPFLAGS_HEAPTYPE | Py_TPFLAGS_HAVE_NEWBUFFER;
+                                          Py_TPFLAGS_HEAPTYPE;
                 type->ht_type.tp_flags &= ~Py_TPFLAGS_HAVE_GC;
 
                 type->ht_type.tp_dealloc = dealloc;


More information about the pypy-commit mailing list