()
| 141 | |
| 142 | |
| 143 | def test_pass_readonly_array(): |
| 144 | z = np.full((5, 6), 42.0) |
| 145 | z.flags.writeable = False |
| 146 | np.testing.assert_array_equal(z, m.fixed_copy_r(z)) |
| 147 | np.testing.assert_array_equal(m.fixed_r_const(), m.fixed_r()) |
| 148 | assert not m.fixed_r_const().flags.writeable |
| 149 | np.testing.assert_array_equal(m.fixed_copy_r(m.fixed_r_const()), m.fixed_r_const()) |
| 150 | |
| 151 | |
| 152 | def test_nonunit_stride_from_python(): |
nothing calls this directly
no outgoing calls
no test coverage detected