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

Method test_squeeze_contiguous

numpy/core/tests/test_regression.py:1717–1723  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1715 assert_(np.array(np.float32(1.0)).flags.f_contiguous)
1716
1717 def test_squeeze_contiguous(self):
1718 # Similar to GitHub issue #387
1719 a = np.zeros((1, 2)).squeeze()
1720 b = np.zeros((2, 2, 2), order='F')[:, :, ::2].squeeze()
1721 assert_(a.flags.c_contiguous)
1722 assert_(a.flags.f_contiguous)
1723 assert_(b.flags.f_contiguous)
1724
1725 def test_squeeze_axis_handling(self):
1726 # Issue #10779

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
squeezeMethod · 0.45

Tested by

no test coverage detected