Skip to content

Commit a4f9733

Browse files
committed
coverage
1 parent c7db0e4 commit a4f9733

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/indexes/timedeltas/test_construction.py

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import pandas as pd
77
import pandas.util.testing as tm
88
from pandas import TimedeltaIndex, timedelta_range, to_timedelta, Timedelta
9+
from pandas.core.arrays import TimedeltaArrayMixin as TimdeltaArray
910

1011

1112
class TestTimedeltaIndex(object):
@@ -41,6 +42,10 @@ def test_infer_from_tdi_mismatch(self):
4142
with pytest.raises(ValueError, match=msg):
4243
TimedeltaIndex(tdi, freq='D')
4344

45+
with pytest.raises(ValueError, match=msg):
46+
# GH#23789
47+
TimedeltaArray(tdi, freq='D')
48+
4449
def test_dt64_data_invalid(self):
4550
# GH#23539
4651
# passing tz-aware DatetimeIndex raises, naive or ndarray[datetime64]

0 commit comments

Comments
 (0)