diff --git a/test/functional/wallet_createwallet.py b/test/functional/wallet_createwallet.py index 85970d049c9..f6da0605b8a 100755 --- a/test/functional/wallet_createwallet.py +++ b/test/functional/wallet_createwallet.py @@ -45,7 +45,6 @@ class CreateWalletTest(BitcoinTestFramework): self.log.info('Test that private keys cannot be imported') privkey, pubkey = generate_keypair(wif=True) - assert_raises_rpc_error(-4, 'Cannot import private keys to a wallet with private keys disabled', w1.importprivkey, privkey) result = w1.importdescriptors([{'desc': descsum_create('wpkh(' + privkey + ')'), 'timestamp': 'now'}]) assert not result[0]['success'] assert 'warnings' not in result[0]