@@ -346,8 +346,10 @@ def test_getitem_setitem_datetime_tz_dateutil(self):
346
346
from pandas import date_range
347
347
348
348
N = 50
349
+
349
350
# testing with timezone, GH #2785
350
- rng = date_range ('1/1/1990' , periods = N , freq = 'H' , tz = 'US/Eastern' )
351
+ rng = date_range ('1/1/1990' , periods = N , freq = 'H' ,
352
+ tz = 'America/New_York' )
351
353
ts = Series (np .random .randn (N ), index = rng )
352
354
353
355
# also test Timestamp tz handling, GH #2789
@@ -368,8 +370,8 @@ def test_getitem_setitem_datetime_tz_dateutil(self):
368
370
assert_series_equal (result , ts )
369
371
370
372
result = ts .copy ()
371
- result [datetime (1990 , 1 , 1 , 3 , tzinfo = tz ('US/Central ' ))] = 0
372
- result [datetime (1990 , 1 , 1 , 3 , tzinfo = tz ('US/Central ' ))] = ts [4 ]
373
+ result [datetime (1990 , 1 , 1 , 3 , tzinfo = tz ('America/Chicago ' ))] = 0
374
+ result [datetime (1990 , 1 , 1 , 3 , tzinfo = tz ('America/Chicago ' ))] = ts [4 ]
373
375
assert_series_equal (result , ts )
374
376
375
377
def test_getitem_setitem_periodindex (self ):
0 commit comments