aboutsummaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-07-24 11:07:52 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-07-24 11:08:52 +0200
commitbfd807ff3287f391dcf184b755997fb9d0456a1a (patch)
treecbc3dd0388a24ba2d74eae87feffc217695368d6 /qa
parent410fd7448a58b497ac0c3207b6e1d076c13bca2e (diff)
parentec249d4a1d572a17dd010464fe3ead532a8b1b70 (diff)
downloadbitcoin-bfd807ff3287f391dcf184b755997fb9d0456a1a.tar.xz
Merge pull request #6456
ec249d4 util: use locale-independent parsing in ParseDouble (Wladimir J. van der Laan) 7650449 univalue: Avoid unnecessary roundtrip through double for numbers (Wladimir J. van der Laan) e061e27 rpc: Make ValueFromAmount always return 8 decimals (Wladimir J. van der Laan)
Diffstat (limited to 'qa')
-rwxr-xr-xqa/rpc-tests/rest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/qa/rpc-tests/rest.py b/qa/rpc-tests/rest.py
index 1a2d326cc3..b0cde7268e 100755
--- a/qa/rpc-tests/rest.py
+++ b/qa/rpc-tests/rest.py
@@ -14,6 +14,7 @@ from struct import *
import binascii
import json
import StringIO
+import decimal
try:
import http.client as httplib
@@ -243,7 +244,7 @@ class RESTTest (BitcoinTestFramework):
response_header_json = http_get_call(url.hostname, url.port, '/rest/headers/1/'+bb_hash+self.FORMAT_SEPARATOR+"json", "", True)
assert_equal(response_header_json.status, 200)
response_header_json_str = response_header_json.read()
- json_obj = json.loads(response_header_json_str)
+ json_obj = json.loads(response_header_json_str, parse_float=decimal.Decimal)
assert_equal(len(json_obj), 1) #ensure that there is one header in the json response
assert_equal(json_obj[0]['hash'], bb_hash) #request/response hash should be the same