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

Method test_copy_on_python_builtins

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

Source from the content-addressed store, hash-verified

475 assert_equal(xc.mask, True)
476
477 def test_copy_on_python_builtins(self):
478 # Tests copy works on python builtins (issue#8019)
479 assert_(isMaskedArray(np.ma.copy([1,2,3])))
480 assert_(isMaskedArray(np.ma.copy((1,2,3))))
481
482 def test_copy_immutable(self):
483 # Tests that the copy method is immutable, GitHub issue #5247

Callers

nothing calls this directly

Calls 3

isMaskedArrayFunction · 0.90
assert_Function · 0.50
copyMethod · 0.45

Tested by

no test coverage detected