Author: Ronan Lamy <[email protected]>
Branch: py3.5
Changeset: r89012:af50dbdbb236
Date: 2016-12-12 11:41 +0000
http://bitbucket.org/pypy/pypy/changeset/af50dbdbb236/
Log: fix test
diff --git a/pypy/module/cpyext/test/test_typeobject.py
b/pypy/module/cpyext/test/test_typeobject.py
--- a/pypy/module/cpyext/test/test_typeobject.py
+++ b/pypy/module/cpyext/test/test_typeobject.py
@@ -310,7 +310,7 @@
("setattr", "METH_O",
'''
int ret;
- PyObject* name = PyString_FromString("mymodule");
+ PyObject* name = PyBytes_FromString("mymodule");
PyObject *obj = PyType_Type.tp_alloc(&PyType_Type, 0);
PyHeapTypeObject *type = (PyHeapTypeObject*)obj;
if ((type->ht_type.tp_flags & Py_TPFLAGS_HEAPTYPE) == 0)
@@ -1152,7 +1152,7 @@
Base2->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
Py_TPFLAGS_HEAPTYPE;
Base12->tp_flags = Py_TPFLAGS_DEFAULT;
Base12->tp_base = Base1;
- Base12->tp_bases = PyTuple_Pack(2, Base1, Base2);
+ Base12->tp_bases = PyTuple_Pack(2, Base1, Base2);
Base12->tp_doc = "The Base12 type or object";
if (PyType_Ready(Base1) < 0) return NULL;
if (PyType_Ready(Base2) < 0) return NULL;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit