Skip to content

Commit 6df828e

Browse files
author
Chris Bertinato
committed
Fix for broken datetime tests
1 parent 90018c9 commit 6df828e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/indexes/datetimes/test_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,9 +1139,9 @@ def test_to_datetime_unprocessable_input(self, cache, box, klass):
11391139
expected = klass(np.array([1, '1'], dtype='O'))
11401140
tm.assert_equal(result, expected)
11411141

1142-
with tm.assert_produces_warning(FutureWarning):
1143-
pytest.raises(TypeError, to_datetime, [1, '1'], errors='raise',
1144-
cache=cache, box=box)
1142+
with tm.assert_produces_warning(FutureWarning), \
1143+
pytest.raises(TypeError):
1144+
pd.to_datetime([1, '1'], errors='raise', cache=cache, box=box)
11451145

11461146
def test_to_datetime_other_datetime64_units(self):
11471147
# 5/25/2012

0 commit comments

Comments
 (0)