Test if intent(in) array can be passed without copies
(self, write, order, inp)
| 420 | @pytest.mark.parametrize("order", ["C", "F"]) |
| 421 | @pytest.mark.parametrize("inp", ["2seq", "23seq"]) |
| 422 | def test_in_nocopy(self, write, order, inp): |
| 423 | """Test if intent(in) array can be passed without copies""" |
| 424 | seq = getattr(self, "num" + inp) |
| 425 | obj = np.array(seq, dtype=self.type.dtype, order=order) |
| 426 | obj.setflags(write=(write == 'w')) |
| 427 | a = self.array(obj.shape, |
| 428 | ((order == 'C' and intent.in_.c) or intent.in_), obj) |
| 429 | assert a.has_shared_memory() |
| 430 | |
| 431 | def test_inout_2seq(self): |
| 432 | obj = np.array(self.num2seq, dtype=self.type.dtype) |
nothing calls this directly
no test coverage detected