Commit e0d67f17 authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

bpo-34201: Make ndarray.readonly a bool and use stricter tests in test_buffer. (GH-8414)

parent 7cb7bcff
This diff is collapsed.
......@@ -2038,7 +2038,7 @@ static PyObject *
ndarray_get_readonly(NDArrayObject *self, void *closure)
{
Py_buffer *base = &self->head->base;
return PyLong_FromLong(base->readonly);
return PyBool_FromLong(base->readonly);
}
static PyObject *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment