Skip to content

Commit 44a77f1

Browse files
CLN: Follow-up to pandas-dev#32158
1 parent aa6f241 commit 44a77f1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/tests/window/test_window.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ def test_constructor(self, which):
2929
c(win_type="boxcar", window=2, min_periods=1, center=False)
3030

3131
# not valid
32-
msg = "|".join(["min_periods must be an integer", "center must be a boolean"])
3332
for w in [2.0, "foo", np.array([2])]:
34-
with pytest.raises(ValueError, match=msg):
33+
with pytest.raises(ValueError, match="min_periods must be an integer"):
3534
c(win_type="boxcar", window=2, min_periods=w)
36-
with pytest.raises(ValueError, match=msg):
35+
with pytest.raises(ValueError, match="center must be a boolean"):
3736
c(win_type="boxcar", window=2, min_periods=1, center=w)
3837

3938
for wt in ["foobar", 1]:

0 commit comments

Comments
 (0)