(x, y)
| 2305 | |
| 2306 | |
| 2307 | def assert_array_strict_equal(x, y): |
| 2308 | assert_array_equal(x, y) |
| 2309 | # Check flags, 32 bit arches typically don't provide 16 byte alignment |
| 2310 | if ((x.dtype.alignment <= 8 or |
| 2311 | np.intp().dtype.itemsize != 4) and |
| 2312 | sys.platform != 'win32'): |
| 2313 | assert_(x.flags == y.flags) |
| 2314 | else: |
| 2315 | assert_(x.flags.owndata == y.flags.owndata) |
| 2316 | assert_(x.flags.writeable == y.flags.writeable) |
| 2317 | assert_(x.flags.c_contiguous == y.flags.c_contiguous) |
| 2318 | assert_(x.flags.f_contiguous == y.flags.f_contiguous) |
| 2319 | assert_(x.flags.writebackifcopy == y.flags.writebackifcopy) |
| 2320 | # check endianness |
| 2321 | assert_(x.dtype.isnative == y.dtype.isnative) |
| 2322 | |
| 2323 | |
| 2324 | class TestClip: |
no test coverage detected
searching dependent graphs…