mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
test: Add missing re.escape() to feature_addrman test
This commit is contained in:
parent
58c25bdcea
commit
fa01f22e6e
2 changed files with 3 additions and 2 deletions
|
@ -93,7 +93,7 @@ task:
|
|||
QTBASEDIR: 'C:\Qt5.12.11_x64_static_vs2019_160900'
|
||||
x64_NATIVE_TOOLS: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"'
|
||||
IgnoreWarnIntDirInTempDetected: 'true'
|
||||
EXCLUDE_TESTS: 'feature_addrman.py,feature_asmap.py'
|
||||
EXCLUDE_TESTS: 'feature_asmap.py'
|
||||
merge_script:
|
||||
- git config --global user.email "ci@ci.ci"
|
||||
- git config --global user.name "ci"
|
||||
|
|
|
@ -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."
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue