From e6e1599e9bb657f1b385fd1fd9484238e302799b Mon Sep 17 00:00:00 2001
From: Daniel Brown <ddb@star.sr.bham.ac.uk>
Date: Thu, 28 Apr 2016 18:26:10 -0700
Subject: [PATCH] test update

---
 test/run_tests.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/test/run_tests.py b/test/run_tests.py
index 53497f0..764a2f5 100644
--- a/test/run_tests.py
+++ b/test/run_tests.py
@@ -33,8 +33,12 @@ for path, folders, files in os.walk("./test_scripts"):
                     exec(code)
                 except Exception as ex:
                     print(bcolors.FAIL)
-                    print("EXCEPTION: " + repr(ex))
-                    traceback.print_exc()
+                    (_type, value, tb) = sys.exc_info()
+                    
+                    print("EXCEPTION: "+ str(value))
+                    
+                    print(traceback.format_exc())
+                    
                     errors.append(filename)
                     print(bcolors.ENDC)
                     sys.stdout.flush()
-- 
GitLab