diff options
author | Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2017-01-30 10:54:46 +0100 |
---|---|---|
committer | Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2017-01-30 10:54:46 +0100 |
commit | dae03de21ca4c86552718015b4572714817ff59f (patch) | |
tree | e2fb0c2934e947c9acdbfc36005d35d38b730956 /tests | |
parent | cae6c38ddb7a21ea0b93caa675caa14a5e943479 (diff) | |
download | qtivi-qface-dae03de21ca4c86552718015b4572714817ff59f.tar.gz |
Ensured we always use the path module and not the pathlib module from Python3. Also when pathlib is now a standard module, the path module has more convenience operations.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_climate.py | 4 | ||||
-rw-r--r-- | tests/test_lookup.py | 4 | ||||
-rw-r--r-- | tests/test_parser.py | 4 | ||||
-rw-r--r-- | tests/test_qtcpp_helper.py | 2 | ||||
-rw-r--r-- | tests/test_tags.py | 4 | ||||
-rw-r--r-- | tests/test_validation.py | 4 |
6 files changed, 11 insertions, 11 deletions
diff --git a/tests/test_climate.py b/tests/test_climate.py index b7adec6..1a2135a 100644 --- a/tests/test_climate.py +++ b/tests/test_climate.py @@ -1,7 +1,7 @@ from qface.generator import FileSystem import logging import logging.config -from pathlib import Path +from path import Path # logging.config.fileConfig('logging.ini') logging.basicConfig() @@ -9,7 +9,7 @@ logging.basicConfig() log = logging.getLogger(__name__) inputPath = Path('tests/in') -log.debug('input path folder: {0}'.format(inputPath.absolute())) +log.debug('input path folder: {0}'.format(inputPath.abspath())) def load_system(): diff --git a/tests/test_lookup.py b/tests/test_lookup.py index 7ff7aa5..af29ee9 100644 --- a/tests/test_lookup.py +++ b/tests/test_lookup.py @@ -1,6 +1,6 @@ import logging import logging.config -from pathlib import Path +from path import Path from qface.generator import FileSystem @@ -10,7 +10,7 @@ logging.basicConfig() log = logging.getLogger(__name__) inputPath = Path('tests/in') -log.debug('input path folder: {0}'.format(inputPath.absolute())) +log.debug('input path folder: {0}'.format(inputPath.abspath())) def load_tuner(): diff --git a/tests/test_parser.py b/tests/test_parser.py index 3b36cd1..f315128 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -1,6 +1,6 @@ import logging import logging.config -from pathlib import Path +from path import Path from qface.generator import FileSystem @@ -10,7 +10,7 @@ logging.basicConfig() log = logging.getLogger(__name__) inputPath = Path('tests/in') -log.debug('input path folder: {0}'.format(inputPath.absolute())) +log.debug('input path folder: {0}'.format(inputPath.abspath())) def load_tuner(): diff --git a/tests/test_qtcpp_helper.py b/tests/test_qtcpp_helper.py index d86dfd1..69a9317 100644 --- a/tests/test_qtcpp_helper.py +++ b/tests/test_qtcpp_helper.py @@ -1,6 +1,6 @@ import logging import logging.config -from pathlib import Path +from path import Path from qface.helper import qtcpp from qface.generator import FileSystem diff --git a/tests/test_tags.py b/tests/test_tags.py index 5ff56a0..e8f8ca7 100644 --- a/tests/test_tags.py +++ b/tests/test_tags.py @@ -1,7 +1,7 @@ from qface.generator import FileSystem import logging import logging.config -from pathlib import Path +from path import Path # logging.config.fileConfig('logging.ini') logging.basicConfig() @@ -9,7 +9,7 @@ logging.basicConfig() log = logging.getLogger(__name__) inputPath = Path('tests/in') -log.debug('input path folder: {0}'.format(inputPath.absolute())) +log.debug('input path folder: {0}'.format(inputPath.abspath())) def loadTuner(): diff --git a/tests/test_validation.py b/tests/test_validation.py index a420783..d742872 100644 --- a/tests/test_validation.py +++ b/tests/test_validation.py @@ -1,6 +1,6 @@ import logging import logging.config -from pathlib import Path +from path import Path from qface.generator import FileSystem @@ -10,7 +10,7 @@ logging.basicConfig() log = logging.getLogger(__name__) inputPath = Path('tests/in') -log.debug('input path folder: {0}'.format(inputPath.absolute())) +log.debug('input path folder: {0}'.format(inputPath.abspath())) def load_one(): |