We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4d8d35 commit b0d595bCopy full SHA for b0d595b
pandas/tests/scalar/timedelta/test_construction.py
@@ -8,12 +8,6 @@
8
import pandas.util.testing as tm
9
from pandas import Timedelta
10
11
-import sys
12
-if sys.version_info >= (3, 3):
13
- from contextlib import ExitStack as do_not_raise
14
-else:
15
- from contextlib2 import ExitStack as do_not_raise
16
-
17
18
def test_construction():
19
expected = np.timedelta64(10, 'D').astype('m8[ns]').view('i8')
@@ -219,7 +213,7 @@ def test_td_constructor_value_error():
219
213
220
214
221
215
@pytest.mark.parametrize("redundant_unit, expectation", [
222
- ("", do_not_raise()),
216
+ ("", tm.do_not_raise),
223
217
("d", pytest.raises(ValueError)),
224
218
("us", pytest.raises(ValueError))])
225
@pytest.mark.parametrize("unit", [
0 commit comments