test: skip sqlite3 tests if it isn’t available #26882
pull fanquake wants to merge 1 commits into bitcoin:master from fanquake:func_tests_check_import_sqlite changing 2 files +13 −1-
fanquake commented at 1:28 pm on January 12, 2023: member
-
fanquake added the label Tests on Jan 12, 2023
-
DrahtBot commented at 1:28 pm on January 12, 2023: contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviews
See the guideline for information on the review process.
Type Reviewers ACK brunoerg If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
-
test: skip sqlite3 tests if it isn't available
Fixes #26819. Related too #26873.
-
in test/functional/wallet_descriptor.py:34 in 2deb6ac321 outdated
26@@ -27,6 +27,7 @@ def set_test_params(self): 27 def skip_test_if_missing_module(self): 28 self.skip_if_no_wallet() 29 self.skip_if_no_sqlite() 30+ self.skip_if_no_py_sqlite3()
maflcko commented at 1:35 pm on January 12, 2023:Needs try-catch in line 2 of this file
0try: 1 import sqlite3 2except ImportError: 3 pass
fanquake commented at 1:45 pm on January 12, 2023:Added.fanquake force-pushed on Jan 12, 2023brunoerg approvedbrunoerg commented at 12:49 pm on January 13, 2023: contributorACK eea73d465e5356e9b8d8f41c4a797b5a5aaa63af
Removed sqlite3 and ran the test:
02023-01-13T12:48:05.992000Z TestFramework (WARNING): Test Skipped: sqlite3 module not available. 12023-01-13T12:48:06.047000Z TestFramework (INFO): Stopping nodes 22023-01-13T12:48:06.047000Z TestFramework (INFO): Cleaning up /var/folders/7j/m0yjzmhj4ys9jgl353v2mqph0000gn/T/bitcoin_func_test_bb6sbr9w on exit 32023-01-13T12:48:06.047000Z TestFramework (INFO): Test skipped
With sqlite3:
02023-01-13T12:47:35.815000Z TestFramework (INFO): Initializing test directory /var/folders/7j/m0yjzmhj4ys9jgl353v2mqph0000gn/T/bitcoin_func_test_lfqi98qf 12023-01-13T12:47:36.295000Z TestFramework (INFO): Making a descriptor wallet 22023-01-13T12:47:36.335000Z TestFramework (INFO): Checking wallet info 32023-01-13T12:47:36.335000Z TestFramework (INFO): Test that getnewaddress and getrawchangeaddress work 42023-01-13T12:47:36.420000Z TestFramework (INFO): Test sending and receiving 52023-01-13T12:47:36.422000Z TestFramework (INFO): Test disabled RPCs 62023-01-13T12:47:36.427000Z TestFramework (INFO): Test encryption 72023-01-13T12:47:36.886000Z TestFramework (INFO): Test that getnewaddress still works after keypool is exhausted in an encrypted wallet 82023-01-13T12:47:37.107000Z TestFramework (INFO): Test that unlock is needed when deriving only hardened keys in an encrypted wallet 92023-01-13T12:47:37.286000Z TestFramework (INFO): Test born encrypted wallets 102023-01-13T12:47:37.699000Z TestFramework (INFO): Test blank descriptor wallets 112023-01-13T12:47:37.701000Z TestFramework (INFO): Test descriptor wallet with disabled private keys 122023-01-13T12:47:37.703000Z TestFramework (INFO): Test descriptor exports 132023-01-13T12:47:37.740000Z TestFramework (INFO): Testing descriptor address type for legacy external 142023-01-13T12:47:37.741000Z TestFramework (INFO): Testing the same descriptor is returned for address type legacy external 152023-01-13T12:47:37.749000Z TestFramework (INFO): Testing import of exported legacy descriptor 162023-01-13T12:47:37.764000Z TestFramework (INFO): Testing descriptor address type for p2sh-segwit external 172023-01-13T12:47:37.765000Z TestFramework (INFO): Testing the same descriptor is returned for address type p2sh-segwit external 182023-01-13T12:47:37.774000Z TestFramework (INFO): Testing import of exported p2sh-segwit descriptor 192023-01-13T12:47:37.789000Z TestFramework (INFO): Testing descriptor address type for bech32 external 202023-01-13T12:47:37.790000Z TestFramework (INFO): Testing the same descriptor is returned for address type bech32 external 212023-01-13T12:47:37.798000Z TestFramework (INFO): Testing import of exported bech32 descriptor 222023-01-13T12:47:37.814000Z TestFramework (INFO): Testing descriptor address type for bech32m external 232023-01-13T12:47:37.814000Z TestFramework (INFO): Testing the same descriptor is returned for address type bech32m external 242023-01-13T12:47:37.824000Z TestFramework (INFO): Testing import of exported bech32m descriptor 252023-01-13T12:47:37.844000Z TestFramework (INFO): Testing descriptor address type for legacy internal 262023-01-13T12:47:37.845000Z TestFramework (INFO): Testing the same descriptor is returned for address type legacy internal 272023-01-13T12:47:37.852000Z TestFramework (INFO): Testing import of exported legacy descriptor 282023-01-13T12:47:37.867000Z TestFramework (INFO): Testing descriptor address type for p2sh-segwit internal 292023-01-13T12:47:37.868000Z TestFramework (INFO): Testing the same descriptor is returned for address type p2sh-segwit internal 302023-01-13T12:47:37.876000Z TestFramework (INFO): Testing import of exported p2sh-segwit descriptor 312023-01-13T12:47:37.891000Z TestFramework (INFO): Testing descriptor address type for bech32 internal 322023-01-13T12:47:37.892000Z TestFramework (INFO): Testing the same descriptor is returned for address type bech32 internal 332023-01-13T12:47:37.899000Z TestFramework (INFO): Testing import of exported bech32 descriptor 342023-01-13T12:47:37.914000Z TestFramework (INFO): Testing descriptor address type for bech32m internal 352023-01-13T12:47:37.915000Z TestFramework (INFO): Testing the same descriptor is returned for address type bech32m internal 362023-01-13T12:47:37.924000Z TestFramework (INFO): Testing import of exported bech32m descriptor 372023-01-13T12:47:37.944000Z TestFramework (INFO): Test that loading descriptor wallet containing legacy key types throws error 382023-01-13T12:47:38.041000Z TestFramework (INFO): Stopping nodes 392023-01-13T12:47:38.152000Z TestFramework (INFO): Cleaning up /var/folders/7j/m0yjzmhj4ys9jgl353v2mqph0000gn/T/bitcoin_func_test_lfqi98qf on exit 402023-01-13T12:47:38.152000Z TestFramework (INFO): Tests successful
maflcko merged this on Jan 13, 2023maflcko closed this on Jan 13, 2023
fanquake deleted the branch on Jan 13, 2023sidhujag referenced this in commit b336c87b7b on Jan 13, 2023bitcoin locked this on Jan 13, 2024
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-01-21 21:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-01-21 21:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me