Skip to content

Commit

Permalink
Improve assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed May 2, 2024
1 parent 4e6a225 commit 682617c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def test_safe_repr_zoneinfo():
zoneinfo = pytest.importorskip("zoneinfo")
assert (
safe_repr(datetime(2000, 2, 2, tzinfo=zoneinfo.ZoneInfo('Europe/Bucharest')))
== "datetime(2000, 2, 2, 0, 0, 0, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Bucharest'), fold=0)"
== f"datetime(2000, 2, 2, 0, 0, 0, 0, tzinfo={repr(zoneinfo.ZoneInfo('Europe/Bucharest'))}, fold=0)"
)


Expand Down

0 comments on commit 682617c

Please sign in to comment.