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

Method test_inout_2seq

numpy/f2py/tests/test_array_from_pyobj.py:431–443  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

429 assert a.has_shared_memory()
430
431 def test_inout_2seq(self):
432 obj = np.array(self.num2seq, dtype=self.type.dtype)
433 a = self.array([len(self.num2seq)], intent.inout, obj)
434 assert a.has_shared_memory()
435
436 try:
437 a = self.array([2], intent.in_.inout, self.num2seq)
438 except TypeError as msg:
439 if not str(msg).startswith(
440 "failed to initialize intent(inout|inplace|cache) array"):
441 raise
442 else:
443 raise SystemError("intent(inout) should have failed on sequence")
444
445 def test_f_inout_23seq(self):
446 obj = np.array(self.num23seq, dtype=self.type.dtype, order="F")

Callers

nothing calls this directly

Calls 2

has_shared_memoryMethod · 0.80
startswithMethod · 0.80

Tested by

no test coverage detected