summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2023-02-09 18:04:12 +0100
committerSebastian Berg <sebastianb@nvidia.com>2023-02-19 19:52:05 +0100
commit59ed6d81ed82eb5be1c0548efd592ef5d304a9ec (patch)
tree950bac3f7a6a2b9e38694ed85f7a2817dd78fa87 /numpy/core/src
parent6eaf10b2197461ada988d3aa7a2a86f6b3f9f7ab (diff)
downloadnumpy-59ed6d81ed82eb5be1c0548efd592ef5d304a9ec.tar.gz
TST: Do not use `dtypemeta.h` in tests, they should use "external" API
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/umath/_umath_tests.c.src5
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/core/src/umath/_umath_tests.c.src b/numpy/core/src/umath/_umath_tests.c.src
index f701b2b10..b427991e5 100644
--- a/numpy/core/src/umath/_umath_tests.c.src
+++ b/numpy/core/src/umath/_umath_tests.c.src
@@ -24,7 +24,7 @@
#include "numpy/npy_cpu.h"
#include "npy_import.h"
#include "numpy/experimental_dtype_api.h"
-#include "dtypemeta.h"
+
/*
*****************************************************************************
@@ -732,8 +732,7 @@ add_INT32_negative_indexed(PyObject *module, PyObject *dict) {
if (negative == NULL) {
return -1;
}
- PyArray_DTypeMeta *dtype = PyArray_DTypeFromTypeNum(NPY_INT32);
- PyArray_DTypeMeta *dtypes[] = {dtype, dtype};
+ PyArray_DTypeMeta *dtypes[] = {&PyArray_Int32DType, &PyArray_Int32DType};
PyType_Slot slots[] = {
{NPY_METH_contiguous_indexed_loop, INT32_negative_indexed},