소스 검색

Fix bug in cleanup function.

Nuwan Goonasekera 9 년 전
부모
커밋
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 = {