mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
[qa] Use python2/3 syntax
This commit is contained in:
@@ -249,7 +249,7 @@ class WalletTest (BitcoinTestFramework):
|
||||
errorString = ""
|
||||
try:
|
||||
txId = self.nodes[0].sendtoaddress(self.nodes[2].getnewaddress(), "1f-4")
|
||||
except JSONRPCException,e:
|
||||
except JSONRPCException as e:
|
||||
errorString = e.error['message']
|
||||
|
||||
assert("Invalid amount" in errorString)
|
||||
@@ -257,7 +257,7 @@ class WalletTest (BitcoinTestFramework):
|
||||
errorString = ""
|
||||
try:
|
||||
self.nodes[0].generate("2") #use a string to as block amount parameter must fail because it's not interpreted as amount
|
||||
except JSONRPCException,e:
|
||||
except JSONRPCException as e:
|
||||
errorString = e.error['message']
|
||||
|
||||
assert("not an integer" in errorString)
|
||||
@@ -271,7 +271,7 @@ class WalletTest (BitcoinTestFramework):
|
||||
# Check that the txid and balance is found by node1
|
||||
try:
|
||||
self.nodes[1].gettransaction(cbTxId)
|
||||
except JSONRPCException,e:
|
||||
except JSONRPCException as e:
|
||||
assert("Invalid or non-wallet transaction id" not in e.error['message'])
|
||||
|
||||
#check if wallet or blochchain maintenance changes the balance
|
||||
|
||||
Reference in New Issue
Block a user