aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/blockchain.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2015-12-02 18:12:23 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2016-01-18 10:46:46 +0100
commitd8b062d752838aa0d7141355a1341768d4c4064c (patch)
tree0f31cc55f117bec93a2adf1cae4c5bea930fb293 /qa/rpc-tests/blockchain.py
parentd04525a065aefc02a2b719743b18a9c13c91c121 (diff)
downloadbitcoin-d8b062d752838aa0d7141355a1341768d4c4064c.tar.xz
[qa] Fix pyton syntax in rpc tests
Github-Pull: #7335 Rebased-From: 7777994846cdb9b9cf69e391a33eeed30393bbcf
Diffstat (limited to 'qa/rpc-tests/blockchain.py')
-rwxr-xr-xqa/rpc-tests/blockchain.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/rpc-tests/blockchain.py b/qa/rpc-tests/blockchain.py
index 673f1cc545..eccb506e57 100755
--- a/qa/rpc-tests/blockchain.py
+++ b/qa/rpc-tests/blockchain.py
@@ -7,7 +7,7 @@
# Test RPC calls related to blockchain state.
#
-import decimal
+from decimal import Decimal
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
@@ -39,7 +39,7 @@ class BlockchainTest(BitcoinTestFramework):
node = self.nodes[0]
res = node.gettxoutsetinfo()
- assert_equal(res[u'total_amount'], decimal.Decimal('8725.00000000'))
+ assert_equal(res[u'total_amount'], Decimal('8725.00000000'))
assert_equal(res[u'transactions'], 200)
assert_equal(res[u'height'], 200)
assert_equal(res[u'txouts'], 200)