class documentation

class TestFutureWarningArrayLikeNotIterable(_DeprecationTestCase): (source)

View In Hierarchy

Undocumented

Method test_0d_not_deprecated Undocumented
Method test_assignment_not_deprecated Undocumented
Method test_deprecated Test that these objects give a warning since they are not 0-D, not coerced at the top level np.array(obj), but nested, and do not define the sequence protocol.
Method test_strange_dtype_handling The old code would actually use the dtype from the array, but then end up not using the array (for dimension discovery)
Method test_unnested_not_deprecated Undocumented
Class Variable message Undocumented

Inherited from _DeprecationTestCase:

Method assert_deprecated Test if DeprecationWarnings are given and raised.
Method assert_not_deprecated Test that warnings are not raised.
Method setup_method Undocumented
Method teardown_method Undocumented
Instance Variable log Undocumented
Instance Variable warn_ctx Undocumented
@pytest.mark.parametrize('protocol', ['__array__', '__array_interface__', '__array_struct__'])
def test_0d_not_deprecated(self, protocol): (source)

Undocumented

@pytest.mark.parametrize('protocol', ['__array__', '__array_interface__', '__array_struct__'])
def test_assignment_not_deprecated(self, protocol): (source)

Undocumented

@pytest.mark.parametrize('protocol', ['__array__', '__array_interface__', '__array_struct__'])
def test_deprecated(self, protocol): (source)

Test that these objects give a warning since they are not 0-D, not coerced at the top level np.array(obj), but nested, and do not define the sequence protocol.

NOTE: Tests for the versions including __len__ and __getitem__ exist
in test_array_coercion.py and they can be modified or amended when this deprecation expired.
@pytest.mark.parametrize('protocol', ['__array__', '__array_interface__', '__array_struct__'])
def test_strange_dtype_handling(self, protocol): (source)

The old code would actually use the dtype from the array, but then end up not using the array (for dimension discovery)

@pytest.mark.parametrize('protocol', ['__array__', '__array_interface__', '__array_struct__'])
def test_unnested_not_deprecated(self, protocol): (source)

Undocumented