def test_non_unit_stride_2d_indexing(self):
        # Regression test -- used to silently ignore the stride.
        v0 = np.random.rand(50, 50)
        try:
            v = self.spmatrix(v0)[0:25:2, 2:30:3]
        except __HOLE__:
            # if unsupported
            raise nose.SkipTest("feature not implemented")

        assert_array_equal(v.todense(),
                           v0[0:25:2, 2:30:3])
dataset/ETHPy150Open scipy/scipy/scipy/sparse/tests/test_base.py/_TestSlicing.test_non_unit_stride_2d_indexing