Skip to content

Commit 841942b

Browse files
Tests.statistics: Change dense sparse decorator to check sparse with no explicit zeros
1 parent 031ff5f commit 841942b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Orange/tests/test_statistics.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def sparse_with_explicit_zero(x, array):
2626

2727
return sp_array
2828

29-
test_case(self, lambda x: np.array(x))
29+
test_case(self, np.array)
30+
test_case(self, csr_matrix)
31+
test_case(self, csc_matrix)
3032
test_case(self, partial(sparse_with_explicit_zero, array=csr_matrix))
3133
test_case(self, partial(sparse_with_explicit_zero, array=csc_matrix))
3234

0 commit comments

Comments
 (0)