(self)
| 254 | class TestCopy: |
| 255 | |
| 256 | def test_basic(self): |
| 257 | a = np.array([[1, 2], [3, 4]]) |
| 258 | a_copy = np.copy(a) |
| 259 | assert_array_equal(a, a_copy) |
| 260 | a_copy[0, 0] = 10 |
| 261 | assert_equal(a[0, 0], 1) |
| 262 | assert_equal(a_copy[0, 0], 10) |
| 263 | |
| 264 | def test_order(self): |
| 265 | # It turns out that people rely on np.copy() preserving order by |
nothing calls this directly
no test coverage detected