diff --git a/requirements_test.txt b/requirements_test.txt index 20cb1706209..8e74eefc5ef 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -14,5 +14,5 @@ pytest-aiohttp==0.3.0 pytest-cov==2.7.1 pytest-sugar==0.9.2 pytest-timeout==1.3.3 -pytest==4.6.3 +pytest==5.0.0 requests_mock==1.5.2 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index a2807048d0d..0a88a82230c 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -15,7 +15,7 @@ pytest-aiohttp==0.3.0 pytest-cov==2.7.1 pytest-sugar==0.9.2 pytest-timeout==1.3.3 -pytest==4.6.3 +pytest==5.0.0 requests_mock==1.5.2 diff --git a/tests/helpers/test_temperature.py b/tests/helpers/test_temperature.py index a506288b627..cdc3073f71f 100644 --- a/tests/helpers/test_temperature.py +++ b/tests/helpers/test_temperature.py @@ -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):