class documentation

class TestCTypes:

View In Hierarchy

Undocumented

Method ​_make​_readonly Undocumented
Method test​_ctypes​_as​_parameter​_holds​_reference Undocumented
Method test​_ctypes​_data​_as​_holds​_reference Undocumented
Method test​_ctypes​_is​_available Undocumented
Method test​_ctypes​_is​_not​_available Undocumented
def _make_readonly(x):

Undocumented

def test_ctypes_as_parameter_holds_reference(self):

Undocumented

@pytest.mark.parametrize('arr', [np.array([1, 2, 3]), np.array([['one', 'two'], ['three', 'four']]), np.array((1, 2), dtype='i4,i4'), np.zeros((2), dtype=np.dtype(dict(formats=['<i4', '<i4'], names=['a', 'b'], offsets=[0, 2], itemsize=6))), np.array([None], dtype=object), np.array([]), np.empty((0, 0)), _make_readonly(np.array([1, 2, 3]))], ids=['1d', '2d', 'structured', 'overlapping', 'object', 'empty', 'empty-2d', 'readonly'])
def test_ctypes_data_as_holds_reference(self, arr):

Undocumented

def test_ctypes_is_available(self):

Undocumented

def test_ctypes_is_not_available(self):

Undocumented