MCPcopy Create free account
hub / github.com/numpy/numpy / assert_ma_equal

Function assert_ma_equal

numpy/core/tests/test_getlimits.py:139–145  ·  view source on GitHub ↗
(discovered, ma_like)

Source from the content-addressed store, hash-verified

137
138
139def assert_ma_equal(discovered, ma_like):
140 # Check MachAr-like objects same as calculated MachAr instances
141 for key, value in discovered.__dict__.items():
142 assert_equal(value, getattr(ma_like, key))
143 if hasattr(value, 'shape'):
144 assert_equal(value.shape, getattr(ma_like, key).shape)
145 assert_equal(value.dtype, getattr(ma_like, key).dtype)
146
147
148def test_known_types():

Callers 1

test_known_typesFunction · 0.85

Calls 1

assert_equalFunction · 0.90

Tested by

no test coverage detected