Skip to content

Commit 1185799

Browse files
committed
use marks
1 parent 199d68c commit 1185799

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/groupby/test_function.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,9 @@ def scipy_sem(*args, **kwargs):
478478
('first', lambda x: x.iloc[0]),
479479
('last', lambda x: x.iloc[-1]),
480480
('count', np.size),
481-
pytest.param('sem', scipy_sem, mark=td._skip_if_no_scipy)])
481+
pytest.param(
482+
'sem', scipy_sem, marks=[pytest.mark.skipif(
483+
td._skip_if_no_scipy(), reason='scipy not installed')])])
482484
def test_ops_general(op, targop):
483485
df = DataFrame(np.random.randn(1000))
484486
labels = np.random.randint(0, 50, size=1000).astype(float)

0 commit comments

Comments
 (0)