[qa] test_framework: Properly print exceptions and assert empty dict

Github-Pull: #7951
Rebased-From: 5555528b47 fada064f67
This commit is contained in:
MarcoFalke
2016-04-23 14:35:52 +02:00
parent 7a8348994b
commit 493b89e959
3 changed files with 6 additions and 6 deletions

View File

@@ -143,7 +143,7 @@ class BitcoinTestFramework(object):
print("Assertion failed: "+ str(e))
traceback.print_tb(sys.exc_info()[2])
except Exception as e:
print("Unexpected exception caught during testing: "+str(e))
print("Unexpected exception caught during testing: " + repr(e))
traceback.print_tb(sys.exc_info()[2])
if not self.options.noshutdown: