diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-05-17 13:28:33 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-05-17 14:12:58 +0200 |
commit | 28c82b4a0189ec8b87b10104c566329a6db91cdf (patch) | |
tree | fa2f54e9ee9c87790c56aa9fb71c85c7e54f0ae5 /uitest | |
parent | 01c14670554b2c93de79f07a71a3f94d81a2178d (diff) |
Improve version check
... to not break on e.g. 4.0
Change-Id: I5b93f6138a5ca85891d2d60beca098b6bcfc15d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134435
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/test_main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uitest/test_main.py b/uitest/test_main.py index 2cefafb074ed..511f2a5c8bd4 100644 --- a/uitest/test_main.py +++ b/uitest/test_main.py @@ -78,7 +78,7 @@ def add_tests_for_file(test_file, test_suite): loader = importlib.machinery.SourceFileLoader(module_name, test_file) # exec_module was only introduced in 3.4 - if sys.version_info[1] < 4: + if sys.version_info < (3,4): mod = loader.load_module() else: mod = types.ModuleType(loader.name) |