MCPcopy Create free account
hub / github.com/numpy/numpy / assert_array_strict_equal

Function assert_array_strict_equal

numpy/core/tests/test_numeric.py:1817–1831  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

1815
1816
1817def 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
1834class TestClip:

Callers 15

test_simple_doubleMethod · 0.85
test_simple_intMethod · 0.85
test_array_doubleMethod · 0.85
test_simple_complexMethod · 0.85
test_clip_complexMethod · 0.85
test_clip_non_contigMethod · 0.85
test_simple_outMethod · 0.85
test_simple_int64_outMethod · 0.85
test_simple_int32_outMethod · 0.85

Calls 2

assert_array_equalFunction · 0.90
assert_Function · 0.90

Tested by

no test coverage detected