From 28c82b4a0189ec8b87b10104c566329a6db91cdf Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Tue, 17 May 2022 13:28:33 +0200 Subject: [PATCH] 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 --- uitest/test_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)