changeset 27026:3d5570e776c7

[tests] Remove unused variables
author practicalswift <practicalswift@users.noreply.github.com>
date Wed, 22 Mar 2017 06:40:14 +0100
parents 92573f920160
children 70e76f1d91ae
files test/functional/bip68-sequence.py test/functional/fundrawtransaction.py test/functional/multi_rpc.py test/functional/rawtransactions.py test/functional/zmq_test.py
diffstat 5 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/test/functional/bip68-sequence.py	Wed Mar 22 01:35:57 2017 +0100
+++ b/test/functional/bip68-sequence.py	Wed Mar 22 06:40:14 2017 +0100
@@ -378,8 +378,8 @@
         # activation should happen at block height 432 (3 periods)
         min_activation_height = 432
         height = self.nodes[0].getblockcount()
-        assert(height < 432)
-        self.nodes[0].generate(432-height)
+        assert(height < min_activation_height)
+        self.nodes[0].generate(min_activation_height-height)
         assert(get_bip9_status(self.nodes[0], 'csv')['status'] == 'active')
         sync_blocks(self.nodes)
 
--- a/test/functional/fundrawtransaction.py	Wed Mar 22 01:35:57 2017 +0100
+++ b/test/functional/fundrawtransaction.py	Wed Mar 22 06:40:14 2017 +0100
@@ -691,7 +691,6 @@
 
         inputs = []
         outputs = {self.nodes[2].getnewaddress(): value for value in (1.0, 1.1, 1.2, 1.3)}
-        keys = list(outputs.keys())
         rawtx = self.nodes[3].createrawtransaction(inputs, outputs)
 
         result = [self.nodes[3].fundrawtransaction(rawtx),
--- a/test/functional/multi_rpc.py	Wed Mar 22 01:35:57 2017 +0100
+++ b/test/functional/multi_rpc.py	Wed Mar 22 06:40:14 2017 +0100
@@ -41,11 +41,9 @@
         authpair = url.username + ':' + url.password
 
         #New authpair generated via share/rpcuser tool
-        rpcauth = "rpcauth=rt:93648e835a54c573682c2eb19f882535$7681e9c5b74bdd85e78166031d2058e1069b3ed7ed967c93fc63abba06f31144"
         password = "cA773lm788buwYe4g4WT+05pKyNruVKjQ25x3n0DQcM="
 
         #Second authpair with different username
-        rpcauth2 = "rpcauth=rt2:f8607b1a88861fac29dfccf9b52ff9f$ff36a0c23c8c62b4846112e50fa888416e94c17bfd4c42f88fd8f55ec6a3137e"
         password2 = "8/F3uMDw4KSEbw96U3CA1C4X05dkHDN2BPFjTgZW4KI="
         authpairnew = "rt:"+password
 
--- a/test/functional/rawtransactions.py	Wed Mar 22 01:35:57 2017 +0100
+++ b/test/functional/rawtransactions.py	Wed Mar 22 06:40:14 2017 +0100
@@ -104,7 +104,6 @@
         txId = self.nodes[0].sendtoaddress(mSigObj, 2.2)
         decTx = self.nodes[0].gettransaction(txId)
         rawTx = self.nodes[0].decoderawtransaction(decTx['hex'])
-        sPK = rawTx['vout'][0]['scriptPubKey']['hex']
         self.sync_all()
         self.nodes[0].generate(1)
         self.sync_all()
--- a/test/functional/zmq_test.py	Wed Mar 22 01:35:57 2017 +0100
+++ b/test/functional/zmq_test.py	Wed Mar 22 06:40:14 2017 +0100
@@ -41,7 +41,6 @@
         topic = msg[0]
         assert_equal(topic, b"hashtx")
         body = msg[1]
-        nseq = msg[2]
         msgSequence = struct.unpack('<I', msg[-1])[-1]
         assert_equal(msgSequence, 0) #must be sequence 0 on hashtx