diff options
| author | MarcoFalke <[email protected]> | 2016-03-19 21:36:32 +0100 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2016-03-31 18:35:17 +0200 |
| commit | fa524d9ddbad0a03f9eb974100fb3b6001045645 (patch) | |
| tree | 35e826d3fc5015df5e86989b68a1cec847c105b1 /qa/rpc-tests/keypool.py | |
| parent | Merge #7477: Fix quoting of copyright holders in configure.ac. (diff) | |
| download | discoin-fa524d9ddbad0a03f9eb974100fb3b6001045645.tar.xz discoin-fa524d9ddbad0a03f9eb974100fb3b6001045645.zip | |
[qa] Use python2/3 syntax
Diffstat (limited to 'qa/rpc-tests/keypool.py')
| -rwxr-xr-x | qa/rpc-tests/keypool.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/rpc-tests/keypool.py b/qa/rpc-tests/keypool.py index 95d0d6832..5253d49c3 100755 --- a/qa/rpc-tests/keypool.py +++ b/qa/rpc-tests/keypool.py @@ -46,7 +46,7 @@ class KeyPoolTest(BitcoinTestFramework): try: addr = nodes[0].getnewaddress() raise AssertionError('Keypool should be exhausted after one address') - except JSONRPCException,e: + except JSONRPCException as e: assert(e.error['code']==-12) # put three new keys in the keypool @@ -66,7 +66,7 @@ class KeyPoolTest(BitcoinTestFramework): try: addr = nodes[0].getrawchangeaddress() raise AssertionError('Keypool should be exhausted after three addresses') - except JSONRPCException,e: + except JSONRPCException as e: assert(e.error['code']==-12) # refill keypool with three new addresses @@ -84,7 +84,7 @@ class KeyPoolTest(BitcoinTestFramework): try: nodes[0].generate(1) raise AssertionError('Keypool should be exhausted after three addesses') - except JSONRPCException,e: + except JSONRPCException as e: assert(e.error['code']==-12) def setup_chain(self): |