Skip to content

Commit 7dfce82

Browse files
committed
Fix CI errors for other bad tests using pd.datetime
1 parent 342038f commit 7dfce82

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

pandas/tests/indexes/datetimes/test_constructors.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from datetime import timedelta
1+
from datetime import datetime, timedelta
22
from functools import partial
33
from operator import attrgetter
44

@@ -10,15 +10,7 @@
1010
from pandas._libs.tslibs import OutOfBoundsDatetime, conversion
1111

1212
import pandas as pd
13-
from pandas import (
14-
DatetimeIndex,
15-
Index,
16-
Timestamp,
17-
date_range,
18-
datetime,
19-
offsets,
20-
to_datetime,
21-
)
13+
from pandas import DatetimeIndex, Index, Timestamp, date_range, offsets, to_datetime
2214
from pandas.core.arrays import DatetimeArray, period_array
2315
import pandas.util.testing as tm
2416

pandas/tests/indexes/datetimes/test_misc.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import calendar
2+
from datetime import datetime
23
import locale
34
import unicodedata
45

56
import numpy as np
67
import pytest
78

89
import pandas as pd
9-
from pandas import DatetimeIndex, Index, Timestamp, date_range, datetime, offsets
10+
from pandas import DatetimeIndex, Index, Timestamp, date_range, offsets
1011
import pandas.util.testing as tm
1112

1213

0 commit comments

Comments
 (0)