File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def start_test_fold():
83
83
end_fold () # tag=build
84
84
start_test_fold ()
85
85
86
- if re .search ('** *Failed' , updated_line ) or re .search ('** *Timeout' , updated_line ):
86
+ if re .search (r'\*\*\ *Failed' , updated_line ) or re .search (r'\*\*\ *Timeout' , updated_line ):
87
87
end_fold ()
88
88
updated_line = colored (updated_line , 'red' )
89
89
in_failing_test = True
@@ -97,14 +97,14 @@ def start_test_fold():
97
97
in_failure = False
98
98
else :
99
99
updated_line = colored (updated_line , 'yellow' )
100
- elif re .search ('** * Segmentation fault' , updated_line ):
100
+ elif re .search (r'\*\*\ * Segmentation fault' , updated_line ):
101
101
start_fold ('segfault' )
102
102
updated_line = colored (updated_line , 'magenta' )
103
103
elif re .match (' Test failed: Segmentation fault' , updated_line ):
104
104
end_fold ()
105
105
106
106
else :
107
- if re .match ('(FAIL|ERROR)[:!].*' , updated_line ):
107
+ if re .match (r '(FAIL|ERROR)[:\ !].*' , updated_line ):
108
108
updated_line = colored (updated_line , 'yellow' )
109
109
in_failure = True
110
110
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class FixSignals(fixer_base.BaseFix):
59
59
60
60
def transform (self , node , results ):
61
61
signal = results .get ("signal" ).value
62
- signal = re .sub ('^["\' ]([^(]+)(?:(.*))?["\' ]$' , '\\ 1' , signal )
62
+ signal = re .sub ('^["\' ]([^(]+)(?:\\ (.*\\ ))?["\' ]$' , '\\ 1' , signal )
63
63
64
64
if 'emitter' in results :
65
65
emitter = results .get ("emitter" ).clone ()
Original file line number Diff line number Diff line change 51
51
52
52
53
53
# Strip path and content length because path may vary
54
- RE_STRIP_UNCHECKABLE = rb 'MAP=[^"]+|Content-Length: \d+'
54
+ RE_STRIP_UNCHECKABLE = br 'MAP=[^"]+|Content-Length: \d+'
55
55
RE_ELEMENT = br'</*([^>\[\s]+)[ >]'
56
56
RE_ELEMENT_CONTENT = br'<[^>\[]+>(.+)</[^>\[\s]+>'
57
57
RE_ATTRIBUTES = rb'((?:(?!\s|=).)*)\s*?=\s*?["\']?((?:(?<=")(?:(?<=\\)"|[^"])*|(?<=\')(?:(?<=\\)\'|[^\'])*)|(?:(?!"|\')(?:(?!\/>|>|\s).)+))'
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def setUpClass(cls):
92
92
cls .server = subprocess .Popen ([sys .executable , server_path ],
93
93
env = os .environ , stdout = subprocess .PIPE )
94
94
line = cls .server .stdout .readline ()
95
- cls .port = int (re .findall (r ':(\d+)' , line )[0 ])
95
+ cls .port = int (re .findall (br ':(\d+)' , line )[0 ])
96
96
assert cls .port != 0
97
97
# Wait for the server process to start
98
98
assert waitServer ('http://127.0.0.1:%s' % cls .port ), "Server is not responding!"
You can’t perform that action at this time.
0 commit comments