Salome HOME
projects
/
modules
/
med.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update tests
[modules/med.git]
/
src
/
MEDCalc
/
tui
/
fields_test.py
diff --git
a/src/MEDCalc/tui/fields_test.py
b/src/MEDCalc/tui/fields_test.py
index 9f5ab3669334b122ef0c728a7b852757b5faf0c9..109cf4369183ba9e9586a019db883a65a52b588e 100644
(file)
--- a/
src/MEDCalc/tui/fields_test.py
+++ b/
src/MEDCalc/tui/fields_test.py
@@
-117,4
+117,8
@@
class TestFields(unittest.TestCase):
self.processGuiEvents()
if __name__ == '__main__':
- unittest.main()
+ exit = True
+ # Keep Salome GUI alive
+ if salome.sg.hasDesktop():
+ exit=False
+ unittest.main(exit=exit)