Skip to content

Commit ed83304

Browse files
scopigrr
authored andcommitted
Python 3.6 invalid escape sequence deprecation fixes
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
1 parent 7dca072 commit ed83304

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/device/libraries/BSTest/runner.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get_test_list(self):
5555
return
5656
debug_print('got begin')
5757
while True:
58-
res = self.sp.expect(['>>>>>bs_test_item id\=(\d+) name\="([^\"]*?)" desc="([^"]*?)"',
58+
res = self.sp.expect([r'>>>>>bs_test_item id\=(\d+) name\="([^"]*?)" desc="([^"]*?)"',
5959
'>>>>>bs_test_menu_end',
6060
EOF, TIMEOUT])
6161
if res == 0:
@@ -118,8 +118,8 @@ def run_test(self, index):
118118
if timeout <= 0:
119119
raise 'test begin timeout'
120120
while timeout > 0:
121-
res = self.sp.expect(['>>>>>bs_test_check_failure line=(\d+)',
122-
'>>>>>bs_test_end line=(\d+) result=(\d+) checks=(\d+) failed_checks=(\d+)',
121+
res = self.sp.expect([r'>>>>>bs_test_check_failure line=(\d+)',
122+
r'>>>>>bs_test_end line=(\d+) result=(\d+) checks=(\d+) failed_checks=(\d+)',
123123
TIMEOUT,
124124
EOF,
125125
'Exception',

0 commit comments

Comments
 (0)