aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_addrman.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-09-27 09:56:41 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-09-27 09:52:41 +0200
commitfa01f22e6eb7acdead407c3d263c7e344b4257f4 (patch)
tree0abad181ea6b3a3543eb426a4228925b3aa13d46 /test/functional/feature_addrman.py
parent58c25bdcea9b95348e639180932b388d4bda8157 (diff)
downloadbitcoin-fa01f22e6eb7acdead407c3d263c7e344b4257f4.tar.xz
test: Add missing re.escape() to feature_addrman test
Diffstat (limited to 'test/functional/feature_addrman.py')
-rwxr-xr-xtest/functional/feature_addrman.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/feature_addrman.py b/test/functional/feature_addrman.py
index 55d3e48c64..5a8394db2e 100755
--- a/test/functional/feature_addrman.py
+++ b/test/functional/feature_addrman.py
@@ -5,6 +5,7 @@
"""Test addrman functionality"""
import os
+import re
import struct
from test_framework.messages import ser_uint256, hash256
@@ -56,7 +57,7 @@ class AddrmanTest(BitcoinTestFramework):
init_error = lambda reason: (
f"Error: Invalid or corrupt peers.dat \\({reason}\\). If you believe this "
f"is a bug, please report it to {self.config['environment']['PACKAGE_BUGREPORT']}. "
- f'As a workaround, you can move the file \\("{peers_dat}"\\) out of the way \\(rename, '
+ f'As a workaround, you can move the file \\("{re.escape(peers_dat)}"\\) out of the way \\(rename, '
"move, or delete\\) to have a new one created on the next start."
)