Skip to content

Commit

Permalink
Minor tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
hameerabbasi committed Nov 4, 2024
1 parent 0641137 commit 88bfd5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sparse/mlir_backend/tests/test_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ def test_copy():
"format",
[
"csr",
pytest.param("csc", marks=pytest.mark.xfail(reason="https://github.com/llvm/llvm-project/pull/109135")),
pytest.param("coo", marks=pytest.mark.xfail(reason="https://github.com/llvm/llvm-project/pull/109641")),
pytest.param("csc", marks=pytest.mark.xfail(reason="https://github.com/llvm/llvm-project/pull/109641")),
pytest.param("coo", marks=pytest.mark.xfail(reason="https://github.com/llvm/llvm-project/pull/109135")),
],
)
@pytest.mark.parametrize(
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 88bfd5f

Please sign in to comment.