mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Python 3.6 invalid escape sequence deprecation fixes
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
This commit is contained in:
parent
7dca0727e1
commit
ed83304179
@ -55,7 +55,7 @@ class BSTestRunner(object):
|
|||||||
return
|
return
|
||||||
debug_print('got begin')
|
debug_print('got begin')
|
||||||
while True:
|
while True:
|
||||||
res = self.sp.expect(['>>>>>bs_test_item id\=(\d+) name\="([^\"]*?)" desc="([^"]*?)"',
|
res = self.sp.expect([r'>>>>>bs_test_item id\=(\d+) name\="([^"]*?)" desc="([^"]*?)"',
|
||||||
'>>>>>bs_test_menu_end',
|
'>>>>>bs_test_menu_end',
|
||||||
EOF, TIMEOUT])
|
EOF, TIMEOUT])
|
||||||
if res == 0:
|
if res == 0:
|
||||||
@ -118,8 +118,8 @@ class BSTestRunner(object):
|
|||||||
if timeout <= 0:
|
if timeout <= 0:
|
||||||
raise 'test begin timeout'
|
raise 'test begin timeout'
|
||||||
while timeout > 0:
|
while timeout > 0:
|
||||||
res = self.sp.expect(['>>>>>bs_test_check_failure line=(\d+)',
|
res = self.sp.expect([r'>>>>>bs_test_check_failure line=(\d+)',
|
||||||
'>>>>>bs_test_end line=(\d+) result=(\d+) checks=(\d+) failed_checks=(\d+)',
|
r'>>>>>bs_test_end line=(\d+) result=(\d+) checks=(\d+) failed_checks=(\d+)',
|
||||||
TIMEOUT,
|
TIMEOUT,
|
||||||
EOF,
|
EOF,
|
||||||
'Exception',
|
'Exception',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user