From 6cab53eaaa3abac9778d1c9ab1ac9851bee454a6 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 27 Apr 2020 17:43:47 +0200 Subject: Tests: fix some tests passing even if there are Python errors Blender was not configured to exit with non-zero return code on Python errors. A bunch of tests worked around this but not all. This removes the need for such workarounds. --- tests/python/bl_constraints.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'tests/python/bl_constraints.py') diff --git a/tests/python/bl_constraints.py b/tests/python/bl_constraints.py index 13a431541bc..9fce8acc84e 100644 --- a/tests/python/bl_constraints.py +++ b/tests/python/bl_constraints.py @@ -255,12 +255,4 @@ def main(): if __name__ == "__main__": - import traceback - # So a python error exits Blender itself too - try: - main() - except SystemExit: - raise - except: - traceback.print_exc() - sys.exit(1) + main() -- cgit v1.2.3