Skip to content

Commit 88861c6

Browse files
ihsansecermroeschke
authored andcommitted
TST: Use (unused) window parameter of test_freq_window_not_implemented (pandas-dev#54947)
* Use window parameter of test_freq_window_not_implemented * Revert change in exception message
1 parent 8d62fb0 commit 88861c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/window/test_rolling.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ def test_freq_window_not_implemented(window):
100100
index=date_range("2015-12-24", periods=10, freq="D"),
101101
)
102102
with pytest.raises(
103-
NotImplementedError, match="step is not supported with frequency windows"
103+
NotImplementedError, match="^step (not implemented|is not supported)"
104104
):
105-
df.rolling("3D", step=3)
105+
df.rolling(window, step=3).sum()
106106

107107

108108
@pytest.mark.parametrize("agg", ["cov", "corr"])

0 commit comments

Comments
 (0)