Skip to content

Commit 4de3812

Browse files
al-buscopybara-github
authored andcommitted
Fixing a typo in hex regex in logging_functional_test.py
PiperOrigin-RevId: 743548804
1 parent e889843 commit 4de3812

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

absl/logging/tests/logging_functional_test.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,11 @@ def _munge_log(buf):
220220
buf)
221221

222222
# Verify thread id is logged as a non-negative quantity.
223-
matched = re.match(r'(?m)^(\w)(\d\d\d\d \d\d:\d\d:\d\d\.\d\d\d\d\d\d) '
224-
r'([ ]*-?[0-9a-fA-f]+ )?([a-zA-Z<][\w._<>-]+):(\d+)',
225-
buf)
223+
matched = re.match(
224+
r'(?m)^(\w)(\d\d\d\d \d\d:\d\d:\d\d\.\d\d\d\d\d\d) '
225+
r'([ ]*-?[0-9a-fA-F]+ )?([a-zA-Z<][\w._<>-]+):(\d+)',
226+
buf,
227+
)
226228
if matched:
227229
threadid = matched.group(3)
228230
if int(threadid) < 0:

0 commit comments

Comments
 (0)