Skip to content

Commit

Permalink
Even more portable tzinfo assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguidry committed Jun 13, 2024
1 parent 3aeed57 commit 4aa47a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pendulum_dt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4aa47a7

Please sign in to comment.