Skip to content

Commit f637aa3

Browse files
neirbowjjreback
authored andcommitted
TST: Use compatible time zones
xref pandas-dev#13186 closes pandas-dev#13190
1 parent 2de2884 commit f637aa3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pandas/tests/series/test_timeseries.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,10 @@ def test_getitem_setitem_datetime_tz_dateutil(self):
346346
from pandas import date_range
347347

348348
N = 50
349+
349350
# 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')
351353
ts = Series(np.random.randn(N), index=rng)
352354

353355
# also test Timestamp tz handling, GH #2789
@@ -368,8 +370,8 @@ def test_getitem_setitem_datetime_tz_dateutil(self):
368370
assert_series_equal(result, ts)
369371

370372
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]
373375
assert_series_equal(result, ts)
374376

375377
def test_getitem_setitem_periodindex(self):

0 commit comments

Comments
 (0)