mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
test: skip sqlite3 tests if it isn't available
Fixes #26819. Related too #26873.
This commit is contained in:
@@ -854,6 +854,13 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
||||
except ImportError:
|
||||
raise SkipTest("python3-zmq module not available.")
|
||||
|
||||
def skip_if_no_py_sqlite3(self):
|
||||
"""Attempt to import the sqlite3 package and skip the test if the import fails."""
|
||||
try:
|
||||
import sqlite3 # noqa
|
||||
except ImportError:
|
||||
raise SkipTest("sqlite3 module not available.")
|
||||
|
||||
def skip_if_no_python_bcc(self):
|
||||
"""Attempt to import the bcc package and skip the tests if the import fails."""
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user