Commit 13d72ed1 authored by Stefan Behnel's avatar Stefan Behnel

Extend numpy integration tests with a little enum usage test for #2523.

parent 92481c27
......@@ -270,6 +270,7 @@ except:
__test__[__name__] = __doc__
def assert_dtype_sizes():
assert sizeof(np.int8_t) == 1
assert sizeof(np.int16_t) == 2
......@@ -284,6 +285,16 @@ def assert_dtype_sizes():
assert sizeof(np.complex64_t) == 8
assert sizeof(np.complex128_t) == 16
@testcase
def test_enums():
"""
>>> test_enums()
"""
cdef np.NPY_CASTING nc = np.NPY_NO_CASTING
assert nc != np.NPY_SAFE_CASTING
def ndarray_str(arr):
u"""
Work around display differences in NumPy 1.14.
......
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