Browse Source

Fix bug in cleanup function.

Nuwan Goonasekera 9 years ago
parent
commit
f34ccec978
1 changed files with 4 additions and 1 deletions
  1. 4 1
      test/helpers.py

+ 4 - 1
test/helpers.py

@@ -44,7 +44,10 @@ def cleanup_action(cleanup_func):
         except Exception as e:
         except Exception as e:
             print("Error during exception cleanup: {0}".format(e))
             print("Error during exception cleanup: {0}".format(e))
         reraise(ex_class, ex_val, ex_traceback)
         reraise(ex_class, ex_val, ex_traceback)
-    cleanup_func()
+    try:
+        cleanup_func()
+    except Exception as e:
+        print("Error during cleanup: {0}".format(e))
 
 
 
 
 TEST_DATA_CONFIG = {
 TEST_DATA_CONFIG = {