qa: Check for platform-independent part of error message

On Windows one gets different exception messages depending on whether running a native build or cross build.
This commit is contained in:
Hodlinator 2026-01-26 11:56:27 +01:00
parent 64a098a9b6
commit ed43ce57cc
No known key found for this signature in database

View File

@ -327,7 +327,7 @@ class MultiWalletTest(BitcoinTestFramework):
# should raise rpc error if wallet path can't be created
err_code = -4
assert_raises_rpc_error(err_code, "filesystem error:" if platform.system() != 'Windows' else "create_directories:", node.createwallet, "w8/bad")
assert_raises_rpc_error(err_code, "Wallet file verification failed. ", node.createwallet, "w8/bad")
# Fail to create a wallet if it already exists.
path = wallet_dir(node, "w2")