diff --git a/tests/test_pendulum_dt.py b/tests/test_pendulum_dt.py index 7b7fdd6f..817b3b9a 100644 --- a/tests/test_pendulum_dt.py +++ b/tests/test_pendulum_dt.py @@ -150,9 +150,9 @@ def test_pendulum_dt_from_serialized_preserves_timezones(dt): assert model.dt.tzinfo is not None assert model.dt.tzinfo.utcoffset(model.dt) == dt_actual.tzinfo.utcoffset(dt_actual) assert model.dt.tz is not None - assert model.dt.tz == dt_actual.tz + assert model.dt.tz.utcoffset(model.dt) == dt_actual.tz.utcoffset(dt_actual) assert model.dt.timezone is not None - assert model.dt.timezone == dt_actual.timezone + assert model.dt.timezone.utcoffset(model.dt) == dt_actual.timezone.utcoffset(dt_actual) @pytest.mark.parametrize(