Skip to content

Commit 3e66a59

Browse files
committed
Merge pull request #7343 from jreback/tz
COMPAT: tests compat with current timezones (pytz) (GH7339)
2 parents 2c2809d + a69b6d1 commit 3e66a59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tseries/tests/test_timezones.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ def test_with_tz(self):
403403
# normalized
404404
central = dr.tz_convert(tz)
405405
self.assertIs(central.tz, tz)
406-
self.assertIs(central[0].tz, tz)
406+
comp = self.localize(tz, central[0].to_pydatetime().replace(tzinfo=None)).tzinfo
407+
self.assertIs(central[0].tz, comp)
407408

408409
# compare vs a localized tz
409410
comp = self.localize(tz, dr[0].to_pydatetime().replace(tzinfo=None)).tzinfo

0 commit comments

Comments
 (0)