We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c2809d + a69b6d1 commit 3e66a59Copy full SHA for 3e66a59
pandas/tseries/tests/test_timezones.py
@@ -403,7 +403,8 @@ def test_with_tz(self):
403
# normalized
404
central = dr.tz_convert(tz)
405
self.assertIs(central.tz, tz)
406
- self.assertIs(central[0].tz, tz)
+ comp = self.localize(tz, central[0].to_pydatetime().replace(tzinfo=None)).tzinfo
407
+ self.assertIs(central[0].tz, comp)
408
409
# compare vs a localized tz
410
comp = self.localize(tz, dr[0].to_pydatetime().replace(tzinfo=None)).tzinfo
0 commit comments