Skip to content

Commit 71305aa

Browse files
scipy unavailable fix in test
1 parent 1a472e3 commit 71305aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/tests/series/methods/test_cov_corr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import numpy as np
44
import pytest
55

6+
import pandas.util._test_decorators as td
7+
68
import pandas as pd
79
from pandas import (
810
Series,
@@ -185,6 +187,7 @@ def test_corr_callable_method(self, datetime_series):
185187
expected = pd.DataFrame([{0: 1.0, 1: 0}, {0: 0, 1: 1.0}])
186188
tm.assert_almost_equal(df.transpose().corr(method=my_corr), expected)
187189

190+
@td.skip_if_no("scipy")
188191
@pytest.mark.parametrize("method", ["kendall", "spearman"])
189192
@pytest.mark.parametrize(
190193
"cat_series",

0 commit comments

Comments
 (0)