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

Method test_repr

numpy/ma/tests/test_core.py:5345–5352  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5343 assert_(m is not np.ma.masked)
5344
5345 def test_repr(self):
5346 # copies should not exist, but if they do, it should be obvious that
5347 # something is wrong
5348 assert_equal(repr(np.ma.masked), 'masked')
5349
5350 # create a new instance in a weird way
5351 masked2 = np.ma.MaskedArray.__new__(np.ma.core.MaskedConstant)
5352 assert_not_equal(repr(masked2), 'masked')
5353
5354 def test_pickle(self):
5355 from io import BytesIO

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
__new__Method · 0.45

Tested by

no test coverage detected