From e75c724113c9ebdd9f259a8a0b56f14c71866863 Mon Sep 17 00:00:00 2001 From: Hameer Abbasi <2190658+hameerabbasi@users.noreply.github.com> Date: Mon, 4 Nov 2024 10:40:42 +0100 Subject: [PATCH] Minor tweaks. --- sparse/mlir_backend/tests/test_simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparse/mlir_backend/tests/test_simple.py b/sparse/mlir_backend/tests/test_simple.py index 2814e585..0940001d 100644 --- a/sparse/mlir_backend/tests/test_simple.py +++ b/sparse/mlir_backend/tests/test_simple.py @@ -336,7 +336,7 @@ def test_reshape(rng, dtype, format, shape, new_shape): except RuntimeError: pytest.xfail("No library to compare to.") - expected = sparse.asarray(arr_sps.reshape(new_shape).asformat(scipy_format)) if scipy_format is not None else arr + expected = sparse.asarray(arr_sps.reshape(new_shape).asformat(scipy_format)) for x, y in zip(expected.get_constituent_arrays(), actual.get_constituent_arrays(), strict=True): np.testing.assert_array_equal(x, y)