8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9148517 commit 51be01fCopy full SHA for 51be01f
pandas/tests/scalar/timedelta/test_timedelta.py
@@ -1,6 +1,5 @@
1
""" test the scalar Timedelta """
2
from datetime import timedelta
3
-from warnings import catch_warnings, simplefilter
4
5
import numpy as np
6
import pytest
@@ -290,10 +289,10 @@ def test_iso_conversion(self):
290
289
assert to_timedelta('P0DT0H0M1S') == expected
291
292
def test_nat_converters(self):
293
- with catch_warnings():
294
- simplefilter("ignore", FutureWarning)
295
-
+ with tm.assert_produces_warning(FutureWarning):
296
assert to_timedelta('nat', box=False).astype('int64') == iNaT
+
297
assert to_timedelta('nan', box=False).astype('int64') == iNaT
298
299
@pytest.mark.parametrize('units, np_unit',
0 commit comments