diff options
author | Jon Atack <jon@atack.com> | 2022-10-04 15:18:42 +0200 |
---|---|---|
committer | jonatack <jon@atack.com> | 2023-01-03 10:59:56 -0800 |
commit | 459cb637aca80f744a8399e84bc78fab60de0b5c (patch) | |
tree | bcf2240137aed6850656680f64b881ef1b8201f7 /test/functional/wallet_signer.py | |
parent | cb552c5f21192d2f8f69c07130928c21301a5e7f (diff) |
script, test: fix python linter E275 errors with flake8 5.0.4
Diffstat (limited to 'test/functional/wallet_signer.py')
-rwxr-xr-x | test/functional/wallet_signer.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/wallet_signer.py b/test/functional/wallet_signer.py index 01cd4f28fc..8d25044e43 100755 --- a/test/functional/wallet_signer.py +++ b/test/functional/wallet_signer.py @@ -174,7 +174,7 @@ class WalletSignerTest(BitcoinTestFramework): mock_psbt_signed = mock_wallet.walletprocesspsbt(psbt=mock_psbt, sign=True, sighashtype="ALL", bip32derivs=True) mock_psbt_final = mock_wallet.finalizepsbt(mock_psbt_signed["psbt"]) mock_tx = mock_psbt_final["hex"] - assert(mock_wallet.testmempoolaccept([mock_tx])[0]["allowed"]) + assert mock_wallet.testmempoolaccept([mock_tx])[0]["allowed"] # # Create a new wallet and populate with specific public keys, in order # # to work with the mock signed PSBT. @@ -203,7 +203,7 @@ class WalletSignerTest(BitcoinTestFramework): # assert_equal(result[1], {'success': True}) assert_equal(hww.getwalletinfo()["txcount"], 1) - assert(hww.testmempoolaccept([mock_tx])[0]["allowed"]) + assert hww.testmempoolaccept([mock_tx])[0]["allowed"] with open(os.path.join(self.nodes[1].cwd, "mock_psbt"), "w", encoding="utf8") as f: f.write(mock_psbt_signed["psbt"]) @@ -212,13 +212,13 @@ class WalletSignerTest(BitcoinTestFramework): # Don't broadcast transaction yet so the RPC returns the raw hex res = hww.send(outputs={dest:0.5},options={"add_to_wallet": False}) - assert(res["complete"]) + assert res["complete"] assert_equal(res["hex"], mock_tx) self.log.info('Test sendall using hww1') res = hww.sendall(recipients=[{dest:0.5}, hww.getrawchangeaddress()],options={"add_to_wallet": False}) - assert(res["complete"]) + assert res["complete"] assert_equal(res["hex"], mock_tx) # Broadcast transaction so we can bump the fee hww.sendrawtransaction(res["hex"]) |