Skip to content

Commit cd265fd

Browse files
jeremybettiscarlescufi
authored andcommitted
twister: Use raw string and remove pylint disable
Avoid the pylint anomalous-backslash-in-string warning by using a raw string. Signed-off-by: Jeremy Bettis <[email protected]>
1 parent 6ae34c9 commit cd265fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/pylib/twister/twisterlib/harness.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
_WINDOWS = platform.system() == 'Windows'
2525

2626

27-
# pylint: disable=anomalous-backslash-in-string
28-
result_re = re.compile(".*(PASS|FAIL|SKIP) - (test_)?(.*) in (\\d*[.,]?\\d*) seconds")
27+
result_re = re.compile(r".*(PASS|FAIL|SKIP) - (test_)?(.*) in (\d*[.,]?\d*) seconds")
2928
class Harness:
3029
GCOV_START = "GCOV_COVERAGE_DUMP_START"
3130
GCOV_END = "GCOV_COVERAGE_DUMP_END"

0 commit comments

Comments
 (0)