@@ -220,14 +220,6 @@ def test_infer_tz(self):
220
220
self .assertRaises (Exception , tools ._infer_tzinfo , start , end )
221
221
self .assertRaises (Exception , tools ._infer_tzinfo , end , start )
222
222
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
-
231
223
def test_tz_string (self ):
232
224
result = date_range ('1/1/2000' , periods = 10 , tz = 'US/Eastern' )
233
225
expected = date_range ('1/1/2000' , periods = 10 ,
@@ -253,7 +245,9 @@ def test_index_with_timezone_repr(self):
253
245
254
246
def test_index_astype_asobject_tzinfos (self ):
255
247
# #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' )
257
251
258
252
objs = rng .asobject
259
253
for i , x in enumerate (objs ):
0 commit comments