Python 3.6 invalid escape sequence deprecation fixes (#11941)

https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
This commit is contained in:
Ville Skyttä 2018-01-27 13:16:30 +02:00 committed by Fabian Affolter
parent cad0bde95b
commit b4d682ca75

View file

@ -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'))