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

Method __deepcopy__

numpy/core/tests/test_multiarray.py:2297–2298  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

2295 def test__deepcopy__catches_failure(self):
2296 class MyObj:
2297 def __deepcopy__(self, *args, **kwargs):
2298 raise RuntimeError
2299
2300 arr = np.array([1, MyObj(), 3], dtype='O')
2301 with pytest.raises(RuntimeError):

Callers 2

test__deepcopy__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected