Skip to content

Commit c96b9aa

Browse files
committed
merge bitcoin#23102: Add missing re.escape() to feature_addrman test
1 parent 4db9108 commit c96b9aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/functional/feature_addrman.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""Test addrman functionality"""
66

77
import os
8+
import re
89
import struct
910

1011
from test_framework.messages import ser_uint256, hash256
@@ -56,7 +57,7 @@ def run_test(self):
5657
init_error = lambda reason: (
5758
f"Error: Invalid or corrupt peers.dat \\({reason}\\). If you believe this "
5859
f"is a bug, please report it to {self.config['environment']['PACKAGE_BUGREPORT']}. "
59-
f'As a workaround, you can move the file \\("{peers_dat}"\\) out of the way \\(rename, '
60+
f'As a workaround, you can move the file \\("{re.escape(peers_dat)}"\\) out of the way \\(rename, '
6061
"move, or delete\\) to have a new one created on the next start."
6162
)
6263

0 commit comments

Comments
 (0)