Skip to content

Commit e5a8ea8

Browse files
committed
[tests] tidy up imports in wallet_importmulti.py
1 parent cb41ade commit e5a8ea8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/functional/wallet_importmulti.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
"""Test the importmulti RPC."""
66

7-
from test_framework import script
7+
from test_framework.messages import sha256
8+
from test_framework.script import (
9+
CScript,
10+
OP_0,
11+
OP_NOP,
12+
hash160
13+
)
814
from test_framework.test_framework import BitcoinTestFramework
915
from test_framework.util import (
1016
assert_equal,
@@ -13,12 +19,6 @@
1319
bytes_to_hex_str,
1420
hex_str_to_bytes
1521
)
16-
from test_framework.script import (
17-
CScript,
18-
OP_0,
19-
hash160
20-
)
21-
from test_framework.messages import sha256
2222

2323
class ImportMultiTest(BitcoinTestFramework):
2424
def set_test_params(self):
@@ -112,7 +112,7 @@ def run_test(self):
112112

113113
# Nonstandard scriptPubKey + !internal
114114
self.log.info("Should not import a nonstandard scriptPubKey without internal flag")
115-
nonstandardScriptPubKey = address['scriptPubKey'] + bytes_to_hex_str(script.CScript([script.OP_NOP]))
115+
nonstandardScriptPubKey = address['scriptPubKey'] + bytes_to_hex_str(CScript([OP_NOP]))
116116
address = self.nodes[0].getaddressinfo(self.nodes[0].getnewaddress())
117117
result = self.nodes[1].importmulti([{
118118
"scriptPubKey": nonstandardScriptPubKey,

0 commit comments

Comments
 (0)