From eb112eb3a129e504876747b4eb1d02c176cafcf2 Mon Sep 17 00:00:00 2001 From: scgbckbone Date: Tue, 23 Jun 2026 22:09:39 +0200 Subject: [PATCH] fix tests --- testing/test_bip322.py | 2 +- testing/test_multisig.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/testing/test_bip322.py b/testing/test_bip322.py index cecf17e8..33a5cc59 100644 --- a/testing/test_bip322.py +++ b/testing/test_bip322.py @@ -283,7 +283,7 @@ def test_bip322_0th_input_witness_utxo_requires_zero_value(bip322_txn, start_sig @pytest.mark.parametrize("ins", [ [["p2wpkh", None, None], ["p2wpkh", None, 10000000], ["p2wpkh", None, 10000000]], - [["p2wpkh", None, None], ["p2sh-p2wpkh", None, 10000000], ["p2pkh", None, 10000000]], + [["p2sh-p2wpkh", None, None], ["p2sh-p2wpkh", None, 10000000], ["p2sh-p2wpkh", None, 10000000]], [["p2pkh", None, None], ["p2wpkh", None, 10000000], ["p2sh-p2wpkh", None, 10000000]], ]) def test_bip322_Xth_input_witness_utxo(ins, bip322_txn, start_sign, cap_story, end_sign, diff --git a/testing/test_multisig.py b/testing/test_multisig.py index 94d5890d..7d84a3c3 100644 --- a/testing/test_multisig.py +++ b/testing/test_multisig.py @@ -1539,7 +1539,14 @@ def test_ms_sign_myself(M, use_regtest, make_myself_wallet, addr_fmt, num_ins, d use_regtest() # create a wallet, with 3 bip39 pw's - keys, select_wallet = make_myself_wallet(M, do_import=(not incl_xpubs)) + if addr_fmt == AF_P2WSH: + af = "p2wsh" + elif addr_fmt == AF_P2SH: + af = "p2sh" + else: + assert False + + keys, select_wallet = make_myself_wallet(M, do_import=(not incl_xpubs), addr_fmt=af) N = len(keys) assert M<=N