Skip to content

Commit 682617c

Browse files
committed
Improve assertion.
1 parent 4e6a225 commit 682617c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def test_safe_repr_zoneinfo():
147147
zoneinfo = pytest.importorskip("zoneinfo")
148148
assert (
149149
safe_repr(datetime(2000, 2, 2, tzinfo=zoneinfo.ZoneInfo('Europe/Bucharest')))
150-
== "datetime(2000, 2, 2, 0, 0, 0, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Bucharest'), fold=0)"
150+
== f"datetime(2000, 2, 2, 0, 0, 0, 0, tzinfo={repr(zoneinfo.ZoneInfo('Europe/Bucharest'))}, fold=0)"
151151
)
152152

153153

0 commit comments

Comments
 (0)