test: Remove unnecessary importprivkey from wallet_createwallet

This test was testing importprivkey behavior in a legacy wallet without
private keys. As legacy wallets no longer exist, this test case is no
longer relevant.
This commit is contained in:
Ava Chow
2025-05-08 11:32:15 -07:00
parent 1656f6dbba
commit 94c87bbbd0

View File

@@ -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]