From 406371156b5d2f3219bb1798e9206a115ddcfcdb Mon Sep 17 00:00:00 2001 From: Christian Van Wambeke Date: Fri, 26 Oct 2018 13:52:15 +0200 Subject: [PATCH] add test/test_sat5_0/README as obsolete --- .gitignore | 1 - __init__.py | 2 +- src/debug.py | 9 +++++---- src/options.py | 2 ++ src/salomeTools.py | 3 ++- test/test_sat5_0/README | 1 + 6 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 test/test_sat5_0/README diff --git a/.gitignore b/.gitignore index 6413d40..9d2ca29 100644 --- a/.gitignore +++ b/.gitignore @@ -14,5 +14,4 @@ test/htmlcov test/test_res.html doc/src/commands/apidoc* .idea -.spyderproject diff --git a/__init__.py b/__init__.py index a76d25d..2646961 100644 --- a/__init__.py +++ b/__init__.py @@ -1 +1 @@ -__all__ = ['src', 'commands', ] \ No newline at end of file +__all__ = ['src', 'commands', "test", "unittestpy", ] \ No newline at end of file diff --git a/src/debug.py b/src/debug.py index 5e7924c..aa2eba5 100644 --- a/src/debug.py +++ b/src/debug.py @@ -153,15 +153,16 @@ def saveConfigStd(config, aStream): config.__save__(aStream, indent) def getStrConfigStd(config): - """set string as saveConfigStd, - as file .pyconf""" + """set string as saveConfigStd, as file .pyconf""" outStream = OutStream() saveConfigStd(config, outStream) return outStream.value def getStrConfigDbg(config): - """set string as saveConfigDbg, - as (path expression evaluation) for debug""" + """ + set string as saveConfigDbg, + as (path expression evaluation) for debug + """ outStream = OutStream() saveConfigDbg(config, outStream) return outStream.value diff --git a/src/options.py b/src/options.py index 9e0f21d..a92da86 100644 --- a/src/options.py +++ b/src/options.py @@ -267,6 +267,8 @@ class Options(object): def filterList2(self, aStr): """filter a list as 'KERNEL,YACS,etc.'""" aList = aStr.strip().split(",") + # fix list leading ',' as ',KERNEL,...' + aList = [i for i in aList if i != ""] return aList diff --git a/src/salomeTools.py b/src/salomeTools.py index 68afac0..18dbade 100755 --- a/src/salomeTools.py +++ b/src/salomeTools.py @@ -26,6 +26,8 @@ This file is the main API file for salomeTools | Usage: see file ../sat """ +import sys + _KOSYS = 1 # avoid import src # Compatibility python 2/3 for input function @@ -46,7 +48,6 @@ ERROR: 'salomeTools.py' is not main command entry (CLI) for salomeTools. sys.exit(_KOSYS) import os -import sys import re import tempfile import imp diff --git a/test/test_sat5_0/README b/test/test_sat5_0/README new file mode 100644 index 0000000..48ae79e --- /dev/null +++ b/test/test_sat5_0/README @@ -0,0 +1 @@ +theses tests from sat5.0 are obsolete -- 2.39.2