class documentation

class TestArrayLikes:

View In Hierarchy

Undocumented

Method test​_0d​_generic​_special​_case Undocumented
Method test​_0d​_object​_special​_case Undocumented
Method test​_arraylike​_classes Undocumented
Method test​_bad​_array​_like​_attributes Undocumented
Method test​_bad​_array​_like​_bad​_length Undocumented
Method test​_too​_large​_array​_error​_paths Test the error paths, including for memory leaks
def test_0d_generic_special_case(self):

Undocumented

@pytest.mark.parametrize('arraylike', arraylikes())
def test_0d_object_special_case(self, arraylike):

Undocumented

def test_arraylike_classes(self):

Undocumented

@pytest.mark.parametrize('attribute', ['__array_interface__', '__array__', '__array_struct__'])
@pytest.mark.parametrize('error', [RecursionError, MemoryError])
def test_bad_array_like_attributes(self, attribute, error):

Undocumented

@pytest.mark.parametrize('error', [RecursionError, MemoryError])
def test_bad_array_like_bad_length(self, error):

Undocumented

@pytest.mark.skipif((np.dtype(np.intp).itemsize < 8), reason='Needs 64bit platform')
def test_too_large_array_error_paths(self):
Test the error paths, including for memory leaks