diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-07-14 16:26:08 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-07-14 16:26:08 +0300 |
commit | 0c845e3f8995eb8dc543a63899e5633a46091b4e (patch) | |
tree | 778d8abf94e8312027999ff73860eae1e2ac3327 /test/functional/wallet_listdescriptors.py | |
parent | 531c2b7c04898f5a2097f44e8c12bfb2f53aaf9b (diff) |
test: Fix wallet_listdescriptors.py if bdb is not compiled
Diffstat (limited to 'test/functional/wallet_listdescriptors.py')
-rwxr-xr-x | test/functional/wallet_listdescriptors.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/wallet_listdescriptors.py b/test/functional/wallet_listdescriptors.py index bf53c99855..c2565d84f6 100755 --- a/test/functional/wallet_listdescriptors.py +++ b/test/functional/wallet_listdescriptors.py @@ -30,9 +30,10 @@ class ListDescriptorsTest(BitcoinTestFramework): node = self.nodes[0] assert_raises_rpc_error(-18, 'No wallet is loaded.', node.listdescriptors) - self.log.info('Test that the command is not available for legacy wallets.') - node.createwallet(wallet_name='w1', descriptors=False) - assert_raises_rpc_error(-4, 'listdescriptors is not available for non-descriptor wallets', node.listdescriptors) + if self.is_bdb_compiled(): + self.log.info('Test that the command is not available for legacy wallets.') + node.createwallet(wallet_name='w1', descriptors=False) + assert_raises_rpc_error(-4, 'listdescriptors is not available for non-descriptor wallets', node.listdescriptors) self.log.info('Test the command for empty descriptors wallet.') node.createwallet(wallet_name='w2', blank=True, descriptors=True) |