mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-11 08:50:31 +00:00
Add empty recarray test, check for calloc fail
This commit is contained in:
@@ -17,3 +17,8 @@ arr = create_rec_simple(3)
|
||||
assert arr.dtype == dtype
|
||||
check_eq(arr, [(False, 0, 0.0), (True, 1, 1.5), (False, 2, 3.0)], dtype)
|
||||
check_eq(arr, [(False, 0, 0.0), (True, 1, 1.5), (False, 2, 3.0)], base_dtype)
|
||||
|
||||
arr = create_rec_simple(0)
|
||||
assert arr.dtype == dtype
|
||||
check_eq(arr, [], dtype)
|
||||
check_eq(arr, [], base_dtype)
|
||||
|
||||
Reference in New Issue
Block a user