MCPcopy Index your code
hub / github.com/numpy/numpy / test_copy_on_python_builtins

Method test_copy_on_python_builtins

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

Source from the content-addressed store, hash-verified

570 assert_equal(xc.mask, True)
571
572 def test_copy_on_python_builtins(self):
573 # Tests copy works on python builtins (issue#8019)
574 assert_(isMaskedArray(np.ma.copy([1, 2, 3])))
575 assert_(isMaskedArray(np.ma.copy((1, 2, 3))))
576
577 def test_copy_immutable(self):
578 # Tests that the copy method is immutable, GitHub issue #5247

Callers

nothing calls this directly

Calls 3

isMaskedArrayFunction · 0.90
assert_Function · 0.85
copyMethod · 0.45

Tested by

no test coverage detected