Skip to content

Commit

Permalink
Update test_import
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed May 24, 2024
1 parent 2ae76e0 commit ea084e7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
submodules_qt4 = [
'QtXmlPatterns'
]

submodules_common_qt56 = [
"QtPositioning",
"QtRemoteObjects",
]

submodules_qt5 = [
'QtMultimediaWidgets',
'QtWebChannel',
Expand All @@ -35,10 +41,12 @@
'QtWebSockets',
'QtQml',
'QtXmlPatterns',
"QtLocation",
]

submodules_qt6 = [
"QtSvgWidgets",
"QtPdfWidgets",
]


Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit ea084e7

Please sign in to comment.