Skip to content

Commit 94c87bb

Browse files
committed
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.
1 parent 1656f6d commit 94c87bb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/functional/wallet_createwallet.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def run_test(self):
4545

4646
self.log.info('Test that private keys cannot be imported')
4747
privkey, pubkey = generate_keypair(wif=True)
48-
assert_raises_rpc_error(-4, 'Cannot import private keys to a wallet with private keys disabled', w1.importprivkey, privkey)
4948
result = w1.importdescriptors([{'desc': descsum_create('wpkh(' + privkey + ')'), 'timestamp': 'now'}])
5049
assert not result[0]['success']
5150
assert 'warnings' not in result[0]

0 commit comments

Comments
 (0)