aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-06-07 11:54:39 -0400
committerJohn Newbery <john@johnnewbery.com>2017-06-29 11:16:32 +0100
commit37065d2ed2869aea5a83e69a0ef7a55c5d56724c (patch)
tree80546b50c01313b2dc6f6e42e7959c311a360bab
parent90a002ea647dcea57a2ed4294eab77897168ba1d (diff)
downloadbitcoin-37065d2ed2869aea5a83e69a0ef7a55c5d56724c.tar.xz
[tests] remove unused imports from utils.py
-rwxr-xr-xtest/functional/bip9-softforks.py7
-rw-r--r--test/functional/test_framework/util.py2
-rwxr-xr-xtest/functional/walletbackup.py3
3 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/bip9-softforks.py b/test/functional/bip9-softforks.py
index b90b0ca628..f00232c9ff 100755
--- a/test/functional/bip9-softforks.py
+++ b/test/functional/bip9-softforks.py
@@ -15,6 +15,10 @@ mine a further 143 blocks (LOCKED_IN)
test that enforcement has not triggered (which triggers ACTIVE)
test that enforcement has triggered
"""
+from io import BytesIO
+import shutil
+import time
+import itertools
from test_framework.test_framework import ComparisonTestFramework
from test_framework.util import *
@@ -22,9 +26,6 @@ from test_framework.mininode import CTransaction, NetworkThread
from test_framework.blocktools import create_coinbase, create_block
from test_framework.comptool import TestInstance, TestManager
from test_framework.script import CScript, OP_1NEGATE, OP_CHECKSEQUENCEVERIFY, OP_DROP
-from io import BytesIO
-import time
-import itertools
class BIP9SoftForksTest(ComparisonTestFramework):
diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py
index 2a4f3104aa..9f40de08c6 100644
--- a/test/functional/test_framework/util.py
+++ b/test/functional/test_framework/util.py
@@ -5,7 +5,6 @@
"""Helpful routines for regression testing."""
import os
-import sys
from binascii import hexlify, unhexlify
from base64 import b64encode
@@ -13,7 +12,6 @@ from decimal import Decimal, ROUND_DOWN
import json
import http.client
import random
-import shutil
import subprocess
import tempfile
import time
diff --git a/test/functional/walletbackup.py b/test/functional/walletbackup.py
index a4507182a2..ff51cba4b3 100755
--- a/test/functional/walletbackup.py
+++ b/test/functional/walletbackup.py
@@ -30,10 +30,11 @@ confirm 1/2/3/4 balances are same as before.
Shutdown again, restore using importwallet,
and confirm again balances are correct.
"""
+from random import randint
+import shutil
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
-from random import randint
class WalletBackupTest(BitcoinTestFramework):