Skip to content

Commit 43bc5da

Browse files
committed
TST: alter test to include DST transition, remove asobject_tz_box #1345
1 parent 9748ce0 commit 43bc5da

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

pandas/tseries/tests/test_timezones.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,6 @@ def test_infer_tz(self):
220220
self.assertRaises(Exception, tools._infer_tzinfo, start, end)
221221
self.assertRaises(Exception, tools._infer_tzinfo, end, start)
222222

223-
def test_asobject_tz_box(self):
224-
tz = pytz.timezone('US/Eastern')
225-
index = DatetimeIndex(start='1/1/2005', periods=10, tz=tz,
226-
freq='B')
227-
228-
result = index.asobject
229-
self.assert_(result[0].tz is tz)
230-
231223
def test_tz_string(self):
232224
result = date_range('1/1/2000', periods=10, tz='US/Eastern')
233225
expected = date_range('1/1/2000', periods=10,
@@ -253,7 +245,9 @@ def test_index_with_timezone_repr(self):
253245

254246
def test_index_astype_asobject_tzinfos(self):
255247
# #1345
256-
rng = date_range('4/13/2010', '5/6/2010', tz='US/Eastern')
248+
249+
# dates around a dst transition
250+
rng = date_range('2/13/2010', '5/6/2010', tz='US/Eastern')
257251

258252
objs = rng.asobject
259253
for i, x in enumerate(objs):

0 commit comments

Comments
 (0)