Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df12e1c
)
Modify test: raise exception instead of sys.exit()
author
vsr
<vsr@opencascade.com>
Fri, 20 Aug 2021 17:39:55 +0000
(20:39 +0300)
committer
vsr
<vsr@opencascade.com>
Fri, 20 Aug 2021 17:39:55 +0000
(20:39 +0300)
doc/salome/examples/find_salome_actor_delegate_to_vtk.py
patch
|
blob
|
history
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 e008b7604f1cd28e48201c9dd30b08a3cd569ed2..df8dd13f4c1ecae4ef8e4b3d0f1e60d83ac70fac 100644
(file)
--- 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!'
)