Skip to content

Commit 0c845e3

Browse files
committed
test: Fix wallet_listdescriptors.py if bdb is not compiled
1 parent 531c2b7 commit 0c845e3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/functional/wallet_listdescriptors.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ def run_test(self):
3030
node = self.nodes[0]
3131
assert_raises_rpc_error(-18, 'No wallet is loaded.', node.listdescriptors)
3232

33-
self.log.info('Test that the command is not available for legacy wallets.')
34-
node.createwallet(wallet_name='w1', descriptors=False)
35-
assert_raises_rpc_error(-4, 'listdescriptors is not available for non-descriptor wallets', node.listdescriptors)
33+
if self.is_bdb_compiled():
34+
self.log.info('Test that the command is not available for legacy wallets.')
35+
node.createwallet(wallet_name='w1', descriptors=False)
36+
assert_raises_rpc_error(-4, 'listdescriptors is not available for non-descriptor wallets', node.listdescriptors)
3637

3738
self.log.info('Test the command for empty descriptors wallet.')
3839
node.createwallet(wallet_name='w2', blank=True, descriptors=True)

0 commit comments

Comments
 (0)