From ea084e7515b84a309f9853f1ff41596e08c5e0d4 Mon Sep 17 00:00:00 2001 From: Ales Erjavec Date: Fri, 24 May 2024 13:18:12 +0200 Subject: [PATCH] Update test_import --- test/test_import.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/test_import.py b/test/test_import.py index 1a52179..46a6d83 100644 --- a/test/test_import.py +++ b/test/test_import.py @@ -27,6 +27,12 @@ submodules_qt4 = [ 'QtXmlPatterns' ] + +submodules_common_qt56 = [ + "QtPositioning", + "QtRemoteObjects", +] + submodules_qt5 = [ 'QtMultimediaWidgets', 'QtWebChannel', @@ -35,10 +41,12 @@ 'QtWebSockets', 'QtQml', 'QtXmlPatterns', + "QtLocation", ] submodules_qt6 = [ "QtSvgWidgets", + "QtPdfWidgets", ] @@ -68,9 +76,9 @@ def try_import_anyqt(modname, submodule): if qt_version[0] == '4': submodules.extend(submodules_qt4) if qt_version[0] == '5': - submodules.extend(submodules_qt5) + submodules.extend(submodules_qt5 + submodules_common_qt56) if qt_version[0] == '6': - submodules.extend(submodules_qt6) + submodules.extend(submodules_qt6 + submodules_common_qt56) for submodule in submodules: if try_import_anyqt(modname, submodule): print(submodule, 'Ok')