From: vsr Date: Fri, 20 Aug 2021 17:39:55 +0000 (+0300) Subject: Modify test: raise exception instead of sys.exit() X-Git-Tag: V9_8_0a1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1c601522ed5f08e9abeaecf7f0f40b06f802ac2e;p=modules%2Fsmesh.git Modify test: raise exception instead of sys.exit() --- 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!')