aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Rivera <stefano@rivera.za.net>2020-10-02 21:24:16 -0700
committerStefano Rivera <stefano@rivera.za.net>2020-10-02 21:24:16 -0700
commit04a42f09dd617711e94834e960c954c73bee73a9 (patch)
treee8eb826d89567b455f225b85479b85dd8e70396d /lib_pypy
parentSwallow exceptions in PySlice_GetIndices (diff)
downloadpypy-04a42f09dd617711e94834e960c954c73bee73a9.tar.gz
pypy-04a42f09dd617711e94834e960c954c73bee73a9.tar.bz2
pypy-04a42f09dd617711e94834e960c954c73bee73a9.zip
PyBuffer_To/FromContiguous were implemented in 94ab09b73962
Diffstat (limited to 'lib_pypy')
-rw-r--r--lib_pypy/_testcapimodule.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib_pypy/_testcapimodule.c b/lib_pypy/_testcapimodule.c
index 818afe0a1d..b33f97878c 100644
--- a/lib_pypy/_testcapimodule.c
+++ b/lib_pypy/_testcapimodule.c
@@ -1,6 +1,5 @@
/* Verbatim copy of Modules/_testcapimodule.c from CPython 2.7.18 w/
* parts disabled that rely on the not yet supported:
- * - PyBuffer_To/FromContiguous
* - PyThread_exit_thread
* - PyMarshal_*
* (via the PYPY_NOT_SUPPORTED define)
@@ -394,7 +393,6 @@ test_broken_memoryview(PyObject* self)
Py_RETURN_NONE;
}
-#ifndef PYPY_NOT_SUPPORTED
static PyObject *
test_to_contiguous(PyObject* self, PyObject *noargs)
{
@@ -493,7 +491,6 @@ test_from_contiguous(PyObject* self, PyObject *noargs)
Py_RETURN_NONE;
}
-#endif /* ifndef PYPY_NOT_SUPPORTED */
/* Tests of PyLong_{As, From}{Unsigned,}Long(), and (#ifdef HAVE_LONG_LONG)
@@ -2714,10 +2711,8 @@ static PyMethodDef TestMethods[] = {
{"test_dict_iteration", (PyCFunction)test_dict_iteration,METH_NOARGS},
{"test_lazy_hash_inheritance", (PyCFunction)test_lazy_hash_inheritance,METH_NOARGS},
{"test_broken_memoryview", (PyCFunction)test_broken_memoryview,METH_NOARGS},
-#ifndef PYPY_NOT_SUPPORTED
{"test_to_contiguous", (PyCFunction)test_to_contiguous, METH_NOARGS},
{"test_from_contiguous", (PyCFunction)test_from_contiguous, METH_NOARGS},
-#endif /* ifndef PYPY_NOT_SUPPORTED */
{"test_long_api", (PyCFunction)test_long_api, METH_NOARGS},
{"test_long_and_overflow", (PyCFunction)test_long_and_overflow,
METH_NOARGS},