Skip to content

Commit

Permalink
fix function call which can't embed in f-format string
Browse files Browse the repository at this point in the history
  • Loading branch information
ikluft committed May 10, 2024
1 parent c71bfa2 commit f3c38c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/python/timezone_solar/tests/test_013_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ def make_offset_check(cls, testnum, longitude, use_lon_tz) -> callable:
)
expected_offset = timedelta(minutes=obj_expected.get("offset_min"))
description = (
f"test {PROGNUM:03}-{testnum:03}: longitude={longitude} use_lon_tz={use_lon_tz} "
+ f"→ offset={obj_expected.get("offset_min")}"
f"test {PROGNUM:03}-{testnum:03}: longitude={longitude} use_lon_tz={use_lon_tz}"
+ " → offset="
+ obj_expected.get("offset_min")
)

def check(self):
Expand Down

0 comments on commit f3c38c9

Please sign in to comment.