aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/zapwallettxes.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2015-11-15 20:41:48 +0100
committerMarcoFalke <falke.marco@gmail.com>2016-03-19 19:07:08 +0100
commitfab3890156c849e6b04309152d7a9bfcfcb98396 (patch)
tree6cf00c0c901bcb234d7f665ada028cce39d2199a /qa/rpc-tests/zapwallettxes.py
parent29e1131c4642459349a0ed4737121fb1902f8a47 (diff)
[qa] rpc-test: Normalize assert()
Diffstat (limited to 'qa/rpc-tests/zapwallettxes.py')
-rwxr-xr-xqa/rpc-tests/zapwallettxes.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/qa/rpc-tests/zapwallettxes.py b/qa/rpc-tests/zapwallettxes.py
index 1ee0f79ac0..1ba4ded249 100755
--- a/qa/rpc-tests/zapwallettxes.py
+++ b/qa/rpc-tests/zapwallettxes.py
@@ -65,14 +65,8 @@ class ZapWalletTXesTest (BitcoinTestFramework):
#restart bitcoind with zapwallettxes
self.nodes[0] = start_node(0,self.options.tmpdir, ["-zapwallettxes=1"])
- aException = False
- try:
- tx3 = self.nodes[0].gettransaction(txid3)
- except JSONRPCException,e:
- print e
- aException = True
-
- assert_equal(aException, True) #there must be a expection because the unconfirmed wallettx0 must be gone by now
+ assert_raises(JSONRPCException, self.nodes[0].gettransaction, [txid3])
+ #there must be a expection because the unconfirmed wallettx0 must be gone by now
tx0 = self.nodes[0].gettransaction(txid0)
assert_equal(tx0['txid'], txid0) #tx0 (confirmed) must still be available because it was confirmed