Skip to content

Commit

Permalink
Revert "Use map over list comprehension"
Browse files Browse the repository at this point in the history
This reverts commit 4abca63.
  • Loading branch information
dc2917 committed Jan 15, 2025
1 parent a58ed30 commit efc78fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/hardware/plugins/temperature/test_dp9800.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def test_parse_data(data: bytes) -> None:
parse_data(bytes(data_string, "utf-8"))

temperatures_2_to_9, ff = parse_data(data)
expected_temperatures = map(Decimal, [3.4, 5.6, 7.8, 9.0, 2.3, 4.5, 6.7, 8.9])
expected_temperatures = [
Decimal(val) for val in [3.4, 5.6, 7.8, 9.0, 2.3, 4.5, 6.7, 8.9]
]
expected_sysflag = "10110" # from 0xx1x110
assert temperatures_2_to_9 == pytest.approx(expected_temperatures)
assert ff == expected_sysflag
Expand Down

0 comments on commit efc78fc

Please sign in to comment.