Nuwan Goonasekera 9 лет назад
Родитель
Сommit
f34ccec978
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      test/helpers.py

+ 4 - 1
test/helpers.py

@@ -44,7 +44,10 @@ def cleanup_action(cleanup_func):
         except Exception as e:
             print("Error during exception cleanup: {0}".format(e))
         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 = {