Skip to content

Commit 9bb98b8

Browse files
mroeschkejreback
authored andcommitted
Fix unreliable test (#25496)
1 parent 0a61ecd commit 9bb98b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/indexes/datetimes/test_datetime.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ def test_hash_error(self):
100100

101101
def test_stringified_slice_with_tz(self):
102102
# GH#2658
103-
import datetime
104-
start = datetime.datetime.now()
103+
start = '2013-01-07'
105104
idx = date_range(start=start, freq="1d", periods=10, tz='US/Eastern')
106105
df = DataFrame(lrange(10), index=idx)
107106
df["2013-01-14 23:44:34.437768-05:00":] # no exception here

0 commit comments

Comments
 (0)