Skip to content

Commit 5695ffb

Browse files
committed
TST: fix deprecation test
1 parent 1fec946 commit 5695ffb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

doc/source/whatsnew/v1.1.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Small example of the use of ``origin``:
176176
ts = pd.Series(np.arange(len(rng)) * 3, index=rng)
177177
ts
178178
179-
Resample with the default behavior 'start_day' (origin is 2000-10-01 00:00:00):
179+
Resample with the default behavior ``'start_day'`` (origin is ``2000-10-01 00:00:00``):
180180

181181
.. ipython:: python
182182

pandas/tests/resample/test_deprecated.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ def test_deprecating_on_loffset_and_base():
5656
with tm.assert_produces_warning(FutureWarning):
5757
df.resample("3T", loffset="0s").sum()
5858
msg = "'offset' and 'base' cannot be present at the same time"
59-
with pytest.raises(ValueError, match=msg):
60-
df.groupby("a").resample("3T", base=0, offset=0).sum()
59+
with tm.assert_produces_warning(FutureWarning):
60+
with pytest.raises(ValueError, match=msg):
61+
df.groupby("a").resample("3T", base=0, offset=0).sum()
6162

6263

6364
@all_ts

0 commit comments

Comments
 (0)