Skip to content

Commit 342e743

Browse files
committed
[tests] Use from Qt import
1 parent be12e83 commit 342e743

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

tests/src/python/test_authmanager_pki_ows.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@
3939
QgsRasterLayer,
4040
)
4141

42-
try:
43-
from PyQt4.QtNetwork import QSslCertificate
44-
except ImportError:
45-
from PyQt5.QtNetwork import QSslCertificate
42+
from PyQt.QtNetwork import QSslCertificate
4643

4744
from qgis.testing import (
4845
start_app,

tests/src/python/test_authmanager_pki_postgres.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@
3838
)
3939

4040

41-
try:
42-
from PyQt4.QtNetwork import QSslCertificate
43-
except ImportError:
44-
from PyQt5.QtNetwork import QSslCertificate
41+
from PyQt.QtNetwork import QSslCertificate
4542

4643
from qgis.testing import (
4744
start_app,

0 commit comments

Comments
 (0)