class documentation

class TestCreation:

View In Hierarchy

Test the np.array constructor
Method ​_ragged​_creation Undocumented
Method test​_array​_of​_ragged​_array Undocumented
Method test​_array​_too​_big Undocumented
Method test​_deep​_nonragged​_object Undocumented
Method test​_empty​_unicode Undocumented
Method test​_failed​_len​_sequence Undocumented
Method test​_false​_len​_iterable Undocumented
Method test​_false​_len​_sequence Undocumented
Method test​_from​_attribute Undocumented
Method test​_from​_string Undocumented
Method test​_malloc​_fails Undocumented
Method test​_no​_len​_object​_type Undocumented
Method test​_non​_sequence​_sequence Should not segfault.
Method test​_ragged​_ndim​_object Undocumented
Method test​_ragged​_shape​_object Undocumented
Method test​_sequence​_non​_homogeneous Undocumented
Method test​_structured​_void​_promotion Undocumented
Method test​_too​_big​_error Undocumented
Method test​_void Undocumented
Method test​_zeros Undocumented
Method test​_zeros​_big Undocumented
Method test​_zeros​_like​_like​_zeros Undocumented
Method test​_zeros​_obj Undocumented
Method test​_zeros​_obj​_obj Undocumented
def _ragged_creation(self, seq):

Undocumented

def test_array_of_ragged_array(self):

Undocumented

def test_array_too_big(self):

Undocumented

def test_deep_nonragged_object(self):

Undocumented

def test_empty_unicode(self):

Undocumented

def test_failed_len_sequence(self):

Undocumented

def test_false_len_iterable(self):

Undocumented

def test_false_len_sequence(self):

Undocumented

def test_from_attribute(self):

Undocumented

def test_from_string(self):

Undocumented

@pytest.mark.skipif((np.dtype(np.intp).itemsize != 8), reason='malloc may not fail on 32 bit systems')
def test_malloc_fails(self):

Undocumented

def test_no_len_object_type(self):

Undocumented

def test_non_sequence_sequence(self):

Should not segfault.

Class Fail breaks the sequence protocol for new style classes, i.e., those derived from object. Class Map is a mapping type indicated by raising a ValueError. At some point we may raise a warning instead of an error in the Fail case.

def test_ragged_ndim_object(self):

Undocumented

def test_ragged_shape_object(self):

Undocumented

def test_sequence_non_homogeneous(self):

Undocumented

@pytest.mark.parametrize('idx', [pytest.param(Ellipsis, id='arr'), pytest.param((), id='scalar')])
def test_structured_void_promotion(self, idx):

Undocumented

def test_too_big_error(self):

Undocumented

def test_void(self):

Undocumented

def test_zeros(self):

Undocumented

@pytest.mark.slow
def test_zeros_big(self):

Undocumented

def test_zeros_like_like_zeros(self):

Undocumented

def test_zeros_obj(self):

Undocumented

def test_zeros_obj_obj(self):

Undocumented