From b4d682ca751bfc73916e7a2c2d537a5e9f4ad72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 27 Jan 2018 13:16:30 +0200 Subject: [PATCH] Python 3.6 invalid escape sequence deprecation fixes (#11941) https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior --- tests/components/binary_sensor/test_aurora.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/binary_sensor/test_aurora.py b/tests/components/binary_sensor/test_aurora.py index ed68d23905f..1198aeb1357 100644 --- a/tests/components/binary_sensor/test_aurora.py +++ b/tests/components/binary_sensor/test_aurora.py @@ -28,7 +28,7 @@ class TestAuroraSensorSetUp(unittest.TestCase): def test_setup_and_initial_state(self, mock_req): """Test that the component is created and initialized as expected.""" uri = re.compile( - "http://services\.swpc\.noaa\.gov/text/aurora-nowcast-map\.txt" + r"http://services\.swpc\.noaa\.gov/text/aurora-nowcast-map\.txt" ) mock_req.get(uri, text=load_fixture('aurora.txt')) @@ -66,7 +66,7 @@ class TestAuroraSensorSetUp(unittest.TestCase): def test_custom_threshold_works(self, mock_req): """Test that the config can take a custom forecast threshold.""" uri = re.compile( - "http://services\.swpc\.noaa\.gov/text/aurora-nowcast-map\.txt" + r"http://services\.swpc\.noaa\.gov/text/aurora-nowcast-map\.txt" ) mock_req.get(uri, text=load_fixture('aurora.txt'))