diff options
author | davidjn <dnic12345@gmail.com> | 2017-05-07 16:26:17 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-05-08 00:26:17 +0100 |
commit | d7d1b2a7297a680164e216f96905047ca1a2051f (patch) | |
tree | 2dce0b0aa44710aae147c711e6077b1209910380 /numpy/lib/tests/test_function_base.py | |
parent | bc5dae97c92232e9778fac062437f6f2224282f1 (diff) | |
download | numpy-d7d1b2a7297a680164e216f96905047ca1a2051f.tar.gz |
BUG: Move ctypes ImportError catching to appropriate place (#8898)
This fixes a regression in 3c1a13dea6a7e189675977ad65ea230ce4816061, restoring the
behaviour intended by eee00f8f7e15592a048c8b841aef9ea81faa0fda.
This also extends the support on ctype-less systems for `arr.ctypes.shape` and `arr.ctypes.strides`.
The dummy_ctype object is a naive fake used when ctypes is not importable. It does not intend to fake any ctypes behavior, but provides a duck-typed interface so that method calls do not fail.
The get_shape and get_strides refactors take advantage of other instance methods and reduce code duplication.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions