blob: cdf8783c9d8ed732ae60d45b7bc7d08fc9c7a6da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# mode: run
# tag: warnings, numpy
cimport numpy as np
np.import_array()
# np.import_array is called - no warning necessary
cdef extern from *:
"""
static void** _check_array_api(void) {
return PyArray_API; /* should be non NULL */
}
"""
void** _check_array_api()
def check_array_api():
"""
>>> check_array_api()
True
"""
return _check_array_api() != NULL
_WARNINGS = """
"""
|