@@ -289,7 +289,6 @@ def test_csf_format(dtype):
289289
290290
291291@parametrize_dtypes
292- @pytest .mark .skip (reason = "https://github.com/llvm/llvm-project/issues/116012" )
293292def test_coo_3d_format (dtype ):
294293 format = sparse .levels .get_storage_format (
295294 levels = (
@@ -501,22 +500,8 @@ def test_reshape_dense(dtype):
501500 np .testing .assert_equal (actual_np , expected )
502501
503502
504- @pytest .mark .parametrize (
505- "src_fmt" ,
506- [
507- "csr" ,
508- "csc" ,
509- pytest .param ("coo" , marks = pytest .mark .skip (reason = "https://github.com/llvm/llvm-project/issues/116012" )),
510- ],
511- )
512- @pytest .mark .parametrize (
513- "dst_fmt" ,
514- [
515- "csr" ,
516- "csc" ,
517- pytest .param ("coo" , marks = pytest .mark .skip (reason = "https://github.com/llvm/llvm-project/issues/116012" )),
518- ],
519- )
503+ @pytest .mark .parametrize ("src_fmt" , ["csr" , "csc" , "coo" ])
504+ @pytest .mark .parametrize ("dst_fmt" , ["csr" , "csc" , "coo" ])
520505def test_asformat (rng , src_fmt , dst_fmt ):
521506 SHAPE = (100 , 50 )
522507 DENSITY = 0.5
@@ -529,7 +514,8 @@ def test_asformat(rng, src_fmt, dst_fmt):
529514
530515 expected = sps_arr .asformat (dst_fmt )
531516
532- actual_fmt = sparse .asarray (expected , copy = False ).format
517+ copy = None if dst_fmt == "coo" else False
518+ actual_fmt = sparse .asarray (expected , copy = copy ).format
533519 actual = sp_arr .asformat (actual_fmt )
534520 actual_sps = sparse .to_scipy (actual )
535521
0 commit comments