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_pyapi_idprop_datablock.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'tests/python/bl_pyapi_idprop_datablock.py') diff --git a/tests/python/bl_pyapi_idprop_datablock.py b/tests/python/bl_pyapi_idprop_datablock.py index 648b63d1637..44fec6a9043 100644 --- a/tests/python/bl_pyapi_idprop_datablock.py +++ b/tests/python/bl_pyapi_idprop_datablock.py @@ -20,7 +20,6 @@ import bpy import sys import os import tempfile -import traceback import inspect from bpy.types import UIList @@ -331,11 +330,4 @@ def main(): if __name__ == "__main__": - try: - main() - except: - import traceback - - traceback.print_exc() - sys.stderr.flush() - os._exit(1) + main() -- cgit v1.2.3