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 e75c724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparse/mlir_backend/tests/test_simple.py
Original file line number Diff line number Diff line change
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 e75c724

Please sign in to comment.