From 1c601522ed5f08e9abeaecf7f0f40b06f802ac2e Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 20 Aug 2021 20:39:55 +0300 Subject: [PATCH] Modify test: raise exception instead of sys.exit() --- doc/salome/examples/find_salome_actor_delegate_to_vtk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/salome/examples/find_salome_actor_delegate_to_vtk.py b/doc/salome/examples/find_salome_actor_delegate_to_vtk.py index e008b7604..df8dd13f4 100644 --- a/doc/salome/examples/find_salome_actor_delegate_to_vtk.py +++ b/doc/salome/examples/find_salome_actor_delegate_to_vtk.py @@ -5,5 +5,5 @@ import os import sys -result = 'SALOME_ACTOR_DELEGATE_TO_VTK' in os.environ -sys.exit(int(not result)) +if 'SALOME_ACTOR_DELEGATE_TO_VTK' not in os.environ: + raise RuntimeError('SALOME_ACTOR_DELEGATE_TO_VTK is not set!') -- 2.39.2