@@ -289,7 +289,6 @@ def test_csf_format(dtype):
289
289
290
290
291
291
@parametrize_dtypes
292
- @pytest .mark .skip (reason = "https://github.com/llvm/llvm-project/issues/116012" )
293
292
def test_coo_3d_format (dtype ):
294
293
format = sparse .levels .get_storage_format (
295
294
levels = (
@@ -501,22 +500,8 @@ def test_reshape_dense(dtype):
501
500
np .testing .assert_equal (actual_np , expected )
502
501
503
502
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" ])
520
505
def test_asformat (rng , src_fmt , dst_fmt ):
521
506
SHAPE = (100 , 50 )
522
507
DENSITY = 0.5
@@ -529,7 +514,8 @@ def test_asformat(rng, src_fmt, dst_fmt):
529
514
530
515
expected = sps_arr .asformat (dst_fmt )
531
516
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
533
519
actual = sp_arr .asformat (actual_fmt )
534
520
actual_sps = sparse .to_scipy (actual )
535
521
0 commit comments