Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2020-04-27 18:43:47 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-04-28 13:50:16 +0300
commit6cab53eaaa3abac9778d1c9ab1ac9851bee454a6 (patch)
treead17181fea880cb18058aac2f5f71fac899b0698 /tests/python/bl_pyapi_idprop_datablock.py
parenta7bd8356448efbeb6fc10c0e695f9490219560c5 (diff)
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.
Diffstat (limited to 'tests/python/bl_pyapi_idprop_datablock.py')
-rw-r--r--tests/python/bl_pyapi_idprop_datablock.py10
1 files changed, 1 insertions, 9 deletions
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()