Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b8fdb228 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#2 Use sys.exit() rather than exit() in Python script, following the...

#2 Use sys.exit() rather than exit() in Python script, following the suggestion fron Laurent Steff in its review of MR ctest -I 45,45,1 -V.
parent 4288294c
No related branches found
No related tags found
1 merge request!7Add a pre-commit git hook to prevent commit of a notebook with executed cells within
#!python #!python
import argparse import argparse
import sys
from typing import Optional from typing import Optional
from typing import Sequence from typing import Sequence
...@@ -40,4 +41,4 @@ def main(argv: Optional[Sequence[str]] = None) -> int: ...@@ -40,4 +41,4 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
if __name__ == '__main__': if __name__ == '__main__':
exit(main()) sys.exit(main())
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment