Skip to content

Commit 8fad32e

Browse files
Merge pull request pandas-dev#13 from jbrockmendel/cifix
Fix failing tests
2 parents 9d37675 + 38817a5 commit 8fad32e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/test_base.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from pandas.core.dtypes.dtypes import DatetimeTZDtype
1313
from pandas.core.dtypes.common import (
1414
is_object_dtype, is_datetime64_dtype, is_datetime64tz_dtype,
15-
needs_i8_conversion)
15+
is_timedelta64_dtype, needs_i8_conversion)
1616
import pandas.util.testing as tm
1717
from pandas import (Series, Index, DatetimeIndex, TimedeltaIndex,
1818
PeriodIndex, Timedelta, IntervalIndex, Interval,
@@ -1224,6 +1224,8 @@ def test_numpy_array_all_dtypes(any_numpy_dtype):
12241224
result = ser.array
12251225
if is_datetime64_dtype(any_numpy_dtype):
12261226
assert isinstance(result, DatetimeArray)
1227+
elif is_timedelta64_dtype(any_numpy_dtype):
1228+
assert isinstance(result, TimedeltaArray)
12271229
else:
12281230
assert isinstance(result, PandasArray)
12291231

0 commit comments

Comments
 (0)