aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/importprunedfunds.py
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2016-03-19 21:36:32 +0100
committerMarcoFalke <[email protected]>2016-03-31 18:35:17 +0200
commitfa524d9ddbad0a03f9eb974100fb3b6001045645 (patch)
tree35e826d3fc5015df5e86989b68a1cec847c105b1 /qa/rpc-tests/importprunedfunds.py
parentMerge #7477: Fix quoting of copyright holders in configure.ac. (diff)
downloaddiscoin-fa524d9ddbad0a03f9eb974100fb3b6001045645.tar.xz
discoin-fa524d9ddbad0a03f9eb974100fb3b6001045645.zip
[qa] Use python2/3 syntax
Diffstat (limited to 'qa/rpc-tests/importprunedfunds.py')
-rwxr-xr-xqa/rpc-tests/importprunedfunds.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/rpc-tests/importprunedfunds.py b/qa/rpc-tests/importprunedfunds.py
index 5cbdcde9a..db875800d 100755
--- a/qa/rpc-tests/importprunedfunds.py
+++ b/qa/rpc-tests/importprunedfunds.py
@@ -82,7 +82,7 @@ class ImportPrunedFundsTest(BitcoinTestFramework):
#Import with no affiliated address
try:
result1 = self.nodes[1].importprunedfunds(rawtxn1, proof1, "")
- except JSONRPCException,e:
+ except JSONRPCException as e:
errorString = e.error['message']
assert('No addresses' in errorString)
@@ -119,7 +119,7 @@ class ImportPrunedFundsTest(BitcoinTestFramework):
try:
self.nodes[1].removeprunedfunds(txnid1)
- except JSONRPCException,e:
+ except JSONRPCException as e:
errorString = e.error['message']
assert('does not exist' in errorString)