Skip to content

Commit 72163d4

Browse files
[tests] Remove unused and duplicate imports
1 parent 02d64bd commit 72163d4

File tree

6 files changed

+4
-9
lines changed

6 files changed

+4
-9
lines changed

contrib/testgen/gen_base58_test_vectors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Released under MIT License
1414
import os
1515
from itertools import islice
16-
from base58 import b58encode, b58decode, b58encode_chk, b58decode_chk, b58chars
16+
from base58 import b58encode_chk, b58decode_chk, b58chars
1717
import random
1818
from binascii import b2a_hex
1919

test/functional/import-rescan.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from test_framework.authproxy import JSONRPCException
2323
from test_framework.test_framework import BitcoinTestFramework
2424
from test_framework.util import (start_nodes, connect_nodes, sync_blocks, assert_equal, set_node_times)
25-
from decimal import Decimal
2625

2726
import collections
2827
import enum

test/functional/segwit.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66

77
from test_framework.test_framework import BitcoinTestFramework
88
from test_framework.util import *
9-
from test_framework.mininode import sha256, ripemd160, CTransaction, CTxIn, COutPoint, CTxOut, COIN
9+
from test_framework.mininode import sha256, CTransaction, CTxIn, COutPoint, CTxOut, COIN, ToHex, FromHex
1010
from test_framework.address import script_to_p2sh, key_to_p2pkh
11-
from test_framework.script import CScript, OP_HASH160, OP_CHECKSIG, OP_0, hash160, OP_EQUAL, OP_DUP, OP_EQUALVERIFY, OP_1, OP_2, OP_CHECKMULTISIG, hash160, OP_TRUE
11+
from test_framework.script import CScript, OP_HASH160, OP_CHECKSIG, OP_0, hash160, OP_EQUAL, OP_DUP, OP_EQUALVERIFY, OP_1, OP_2, OP_CHECKMULTISIG, OP_TRUE
1212
from io import BytesIO
13-
from test_framework.mininode import ToHex, FromHex, COIN
1413

1514
NODE_0 = 0
1615
NODE_1 = 1

test/functional/smartfees.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
"""Test fee estimation code."""
66

7-
from collections import OrderedDict
87
from test_framework.test_framework import BitcoinTestFramework
98
from test_framework.util import *
109
from test_framework.script import CScript, OP_1, OP_DROP, OP_2, OP_HASH160, OP_EQUAL, hash160, OP_TRUE
11-
from test_framework.mininode import CTransaction, CTxIn, CTxOut, COutPoint, ToHex, FromHex, COIN
10+
from test_framework.mininode import CTransaction, CTxIn, CTxOut, COutPoint, ToHex, COIN
1211

1312
# Construct 2 trivial P2SH's and the ScriptSigs that spend them
1413
# So we can create many many transactions without needing to spend

test/functional/test_framework/socks5.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"""Dummy Socks5 server for testing."""
66

77
import socket, threading, queue
8-
import traceback, sys
98
import logging
109

1110
logger = logging.getLogger("TestFramework.socks5")

test/functional/test_framework/test_framework.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import shutil
1212
import tempfile
1313
import time
14-
import traceback
1514

1615
from .util import (
1716
initialize_chain,

0 commit comments

Comments
 (0)