We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfa6a9c commit 118127bCopy full SHA for 118127b
pandas/tests/indexes/datetimes/test_ops.py
@@ -1245,7 +1245,8 @@ def test_shift(self):
1245
self.assertEqual(shifted[0], self.rng[0])
1246
self.assertEqual(shifted.offset, self.rng.offset)
1247
1248
- with tm.assert_produces_warning(PerformanceWarning):
+ # PerformanceWarning
1249
+ with warnings.catch_warnings(record=True):
1250
rng = date_range(START, END, freq=BMonthEnd())
1251
shifted = rng.shift(1, freq=CDay())
1252
self.assertEqual(shifted[0], rng[0] + CDay())
0 commit comments