[qa] Use python2/3 syntax
This commit is contained in:
parent
28ad4d9fc2
commit
fa524d9ddb
21 changed files with 78 additions and 75 deletions
qa/rpc-tests/test_framework
|
@ -26,7 +26,7 @@ from .util import (
|
|||
check_json_precision,
|
||||
initialize_chain_clean,
|
||||
)
|
||||
from authproxy import AuthServiceProxy, JSONRPCException
|
||||
from .authproxy import AuthServiceProxy, JSONRPCException
|
||||
|
||||
|
||||
class BitcoinTestFramework(object):
|
||||
|
@ -140,7 +140,7 @@ class BitcoinTestFramework(object):
|
|||
print("JSONRPC error: "+e.error['message'])
|
||||
traceback.print_tb(sys.exc_info()[2])
|
||||
except AssertionError as e:
|
||||
print("Assertion failed: "+e.message)
|
||||
print("Assertion failed: "+ str(e))
|
||||
traceback.print_tb(sys.exc_info()[2])
|
||||
except Exception as e:
|
||||
print("Unexpected exception caught during testing: "+str(e))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue