mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Upgrade pytest to 5.0.0 (#24885)
* Upgrade pytest to 5.0.0 * exception message for pytest 5
This commit is contained in:
committed by
Andrew Sayre
parent
5ba83d4dfb
commit
3d2f843c1d
@@ -16,7 +16,7 @@ def test_temperature_not_a_number(hass):
|
||||
display_temp(hass, temp, TEMP_CELSIUS, PRECISION_HALVES)
|
||||
|
||||
assert "Temperature is not a number: {}".format(temp) \
|
||||
in str(exception)
|
||||
in str(exception.value)
|
||||
|
||||
|
||||
def test_celsius_halves(hass):
|
||||
|
||||
Reference in New Issue
Block a user