Upgrade pytest to 5.0.0 (#24885)

* Upgrade pytest to 5.0.0

* exception message for pytest 5
This commit is contained in:
Daniel Høyer Iversen 2019-07-01 16:47:43 +02:00 committed by Andrew Sayre
parent 5ba83d4dfb
commit 3d2f843c1d
3 changed files with 3 additions and 3 deletions

View File

@ -14,5 +14,5 @@ pytest-aiohttp==0.3.0
pytest-cov==2.7.1 pytest-cov==2.7.1
pytest-sugar==0.9.2 pytest-sugar==0.9.2
pytest-timeout==1.3.3 pytest-timeout==1.3.3
pytest==4.6.3 pytest==5.0.0
requests_mock==1.5.2 requests_mock==1.5.2

View File

@ -15,7 +15,7 @@ pytest-aiohttp==0.3.0
pytest-cov==2.7.1 pytest-cov==2.7.1
pytest-sugar==0.9.2 pytest-sugar==0.9.2
pytest-timeout==1.3.3 pytest-timeout==1.3.3
pytest==4.6.3 pytest==5.0.0
requests_mock==1.5.2 requests_mock==1.5.2

View File

@ -16,7 +16,7 @@ def test_temperature_not_a_number(hass):
display_temp(hass, temp, TEMP_CELSIUS, PRECISION_HALVES) display_temp(hass, temp, TEMP_CELSIUS, PRECISION_HALVES)
assert "Temperature is not a number: {}".format(temp) \ assert "Temperature is not a number: {}".format(temp) \
in str(exception) in str(exception.value)
def test_celsius_halves(hass): def test_celsius_halves(hass):