Skip to content

Commit aa97f24

Browse files
committed
Use address_expr
1 parent 3304e2a commit aa97f24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_faulthandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def check_error(self, code, lineno, fatal_error, *,
130130
regex.append(fr' File "<string>", line {lineno} in {function}')
131131
if c_stack:
132132
regex.append("Current thread's C stack (most recent call first):")
133-
regex.append(r" (\/.+\(\+.+\) \[0x[0-9a-f]+\])|(<.+>)")
133+
regex.append(fr" (\/.+\(\+.+\) \[{address_expr}\])|(<.+>)")
134134
regex = '\n'.join(regex)
135135

136136
if other_regex:

0 commit comments

Comments
 (0)