mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-16 08:22:46 +00:00
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:
parent
64a098a9b6
commit
ed43ce57cc
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user