(x, y)
| 1815 | |
| 1816 | |
| 1817 | def assert_array_strict_equal(x, y): |
| 1818 | assert_array_equal(x, y) |
| 1819 | # Check flags, 32 bit arches typically don't provide 16 byte alignment |
| 1820 | if ((x.dtype.alignment <= 8 or |
| 1821 | np.intp().dtype.itemsize != 4) and |
| 1822 | sys.platform != 'win32'): |
| 1823 | assert_(x.flags == y.flags) |
| 1824 | else: |
| 1825 | assert_(x.flags.owndata == y.flags.owndata) |
| 1826 | assert_(x.flags.writeable == y.flags.writeable) |
| 1827 | assert_(x.flags.c_contiguous == y.flags.c_contiguous) |
| 1828 | assert_(x.flags.f_contiguous == y.flags.f_contiguous) |
| 1829 | assert_(x.flags.writebackifcopy == y.flags.writebackifcopy) |
| 1830 | # check endianness |
| 1831 | assert_(x.dtype.isnative == y.dtype.isnative) |
| 1832 | |
| 1833 | |
| 1834 | class TestClip: |
no test coverage detected