8000 MAINT: Replace deprecated ctypes.ARRAY(item_type, size) with item_type * size by hroncok · Pull Request #25198 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: Replace deprecated ctypes.ARRAY(item_type, size) with item_type * size #25198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions numpy/_core/tests/test_ufunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2985,9 +2985,9 @@ def test_resolve_dtypes_reduction_errors(self):
reason="`ctypes.pythonapi` required for capsule unpacking.")
def test_loop_access(self):
# This is a basic test for the full strided loop access
data_t = ct.ARRAY(ct.c_char_p, 2)
dim_t = ct.ARRAY(ct.c_ssize_t, 1)
strides_t = ct.ARRAY(ct.c_ssize_t, 2)
data_t = ct.c_char_p * 2
dim_t = ct.c_ssize_t * 1
strides_t = ct.c_ssize_t * 2
strided_loop_t = ct.CFUNCTYPE(
ct.c_int, ct.c_void_p, data_t, dim_t, strides_t, ct.c_void_p)

Expand Down
0