diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-04-27 18:43:47 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-04-28 13:50:16 +0300 |
commit | 6cab53eaaa3abac9778d1c9ab1ac9851bee454a6 (patch) | |
tree | ad17181fea880cb18058aac2f5f71fac899b0698 /tests/python/bl_test.py | |
parent | a7bd8356448efbeb6fc10c0e695f9490219560c5 (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_test.py')
-rw-r--r-- | tests/python/bl_test.py | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/tests/python/bl_test.py b/tests/python/bl_test.py index 173d575a912..6315ffbfa9d 100644 --- a/tests/python/bl_test.py +++ b/tests/python/bl_test.py @@ -136,12 +136,7 @@ def main(): print(" Running: '%s'" % run) print(" MD5: '%s'!" % md5) - try: - result = eval(run) - except: - import traceback - traceback.print_exc() - sys.exit(1) + result = eval(run) if write_blend is not None: print(" Writing Blend: %s" % write_blend) @@ -188,10 +183,4 @@ def main(): if __name__ == "__main__": - # So a python error exits(1) - try: - main() - except: - import traceback - traceback.print_exc() - sys.exit(1) + main() |