Skip to content

Commit a45f6a9

Browse files
PauBadiaMclaude
andcommitted
Fix duplicate parametrize ID in test_rankby_order
The string "pearsonr" and function sts.pearsonr both resolve to the same pytest ID. Add explicit id for the function parameter to avoid collision with strict parametrize IDs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f54726f commit a45f6a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/tl/test_rankby_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import decoupler as dc
77

88

9-
@pytest.mark.parametrize("stat", ["dcor", "pearsonr", "spearmanr", "kendalltau", sts.pearsonr])
9+
@pytest.mark.parametrize("stat", ["dcor", "pearsonr", "spearmanr", "kendalltau", pytest.param(sts.pearsonr, id="sts.pearsonr")])
1010
def test_rankby_order(
1111
tdata,
1212
stat,

0 commit comments

Comments
 (0)