Fix W605 warnings
"W605 invalid escape sequence" would be a error in future version of python. Change-Id: I3828d89a2539caf41eb2c3573aa9c541e0b9b885
This commit is contained in:
parent
37bf4889ba
commit
4f6054329b
@ -279,7 +279,7 @@ config_generator_config_file = [
|
|||||||
|
|
||||||
linkcheck_anchors_ignore = [
|
linkcheck_anchors_ignore = [
|
||||||
# skip gerrit anchors
|
# skip gerrit anchors
|
||||||
'\/q\/.*',
|
r'\/q\/.*',
|
||||||
'q\,.*',
|
r'q\,.*',
|
||||||
'\/c\/.*'
|
r'\/c\/.*'
|
||||||
]
|
]
|
||||||
|
@ -21,7 +21,7 @@ class TestIPMonitorEvent(base.BaseTestCase):
|
|||||||
def test_from_text_parses_added_line(self):
|
def test_from_text_parses_added_line(self):
|
||||||
event = ip_monitor.IPMonitorEvent.from_text(
|
event = ip_monitor.IPMonitorEvent.from_text(
|
||||||
'3: wlp3s0 inet 192.168.3.59/24 brd 192.168.3.255 '
|
'3: wlp3s0 inet 192.168.3.59/24 brd 192.168.3.255 '
|
||||||
'scope global dynamic wlp3s0\ valid_lft 300sec '
|
r'scope global dynamic wlp3s0\ valid_lft 300sec '
|
||||||
'preferred_lft 300sec')
|
'preferred_lft 300sec')
|
||||||
self.assertEqual('wlp3s0', event.interface)
|
self.assertEqual('wlp3s0', event.interface)
|
||||||
self.assertTrue(event.added)
|
self.assertTrue(event.added)
|
||||||
|
Loading…
Reference in New Issue
Block a user