diff options
author | fanquake <fanquake@gmail.com> | 2023-01-12 13:26:05 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-01-12 13:37:15 +0000 |
commit | eea73d465e5356e9b8d8f41c4a797b5a5aaa63af (patch) | |
tree | c8b78622073376776e08ba708bf5ba03c8e028fa /test/functional/wallet_descriptor.py | |
parent | edc3d1b296e34838d649dc21b8483a52e214932a (diff) |
test: skip sqlite3 tests if it isn't available
Fixes #26819. Related too #26873.
Diffstat (limited to 'test/functional/wallet_descriptor.py')
-rwxr-xr-x | test/functional/wallet_descriptor.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/functional/wallet_descriptor.py b/test/functional/wallet_descriptor.py index 2b70e5ecc9..f7fb38482a 100755 --- a/test/functional/wallet_descriptor.py +++ b/test/functional/wallet_descriptor.py @@ -4,7 +4,11 @@ # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test descriptor wallet function.""" import os -import sqlite3 + +try: + import sqlite3 +except ImportError: + pass from test_framework.blocktools import COINBASE_MATURITY from test_framework.test_framework import BitcoinTestFramework @@ -27,6 +31,7 @@ class WalletDescriptorTest(BitcoinTestFramework): def skip_test_if_missing_module(self): self.skip_if_no_wallet() self.skip_if_no_sqlite() + self.skip_if_no_py_sqlite3() def run_test(self): if self.is_bdb_compiled(): |