Skip to content

Commit 88bfd5f

Browse files
committed
Minor tweaks.
1 parent 0641137 commit 88bfd5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sparse/mlir_backend/tests/test_simple.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ def test_copy():
304304
"format",
305305
[
306306
"csr",
307-
pytest.param("csc", marks=pytest.mark.xfail(reason="https://github.com/llvm/llvm-project/pull/109135")),
308-
pytest.param("coo", marks=pytest.mark.xfail(reason="https://github.com/llvm/llvm-project/pull/109641")),
307+
pytest.param("csc", marks=pytest.mark.xfail(reason="https://github.com/llvm/llvm-project/pull/109641")),
308+
pytest.param("coo", marks=pytest.mark.xfail(reason="https://github.com/llvm/llvm-project/pull/109135")),
309309
],
310310
)
311311
@pytest.mark.parametrize(
@@ -336,7 +336,7 @@ def test_reshape(rng, dtype, format, shape, new_shape):
336336
except RuntimeError:
337337
pytest.xfail("No library to compare to.")
338338

339-
expected = sparse.asarray(arr_sps.reshape(new_shape).asformat(scipy_format)) if scipy_format is not None else arr
339+
expected = sparse.asarray(arr_sps.reshape(new_shape).asformat(scipy_format))
340340

341341
for x, y in zip(expected.get_constituent_arrays(), actual.get_constituent_arrays(), strict=True):
342342
np.testing.assert_array_equal(x, y)

0 commit comments

Comments
 (0)