Skip to content

Commit bdd1656

Browse files
committed
TST: fix deprecation test
1 parent 104676c commit bdd1656

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

doc/source/whatsnew/v1.1.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Small example of the use of ``origin``:
145145
ts = pd.Series(np.arange(len(rng)) * 3, index=rng)
146146
ts
147147
148-
Resample with the default behavior 'start_day' (origin is 2000-10-01 00:00:00):
148+
Resample with the default behavior ``'start_day'`` (origin is ``2000-10-01 00:00:00``):
149149

150150
.. ipython:: python
151151

pandas/tests/resample/test_deprecated.py

+3-2
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)