Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test_qgssymbollayer.py: simplify logic due to PyQT >= 5.14 requirement
  • Loading branch information
rouault authored and nyalldawson committed Jan 30, 2023
1 parent 0590db2 commit 982da52
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/src/python/test_qgssymbollayer.py
Expand Up @@ -29,7 +29,6 @@
from osgeo import ogr
import os

from packaging.version import Version
from qgis.PyQt.Qt import PYQT_VERSION_STR
from qgis.PyQt.QtCore import Qt, QObject, QDir, QFile, QIODevice, QPointF, QSize, QTemporaryDir
from qgis.PyQt.QtXml import QDomDocument
Expand Down Expand Up @@ -89,11 +88,7 @@

TEST_DATA_DIR = unitTestDataPath()

if Version(PYQT_VERSION_STR) < Version('5.7'):
from qgis.PyQt.QtCore import pyqtWrapperType
EXPECTED_TYPE = pyqtWrapperType
else:
EXPECTED_TYPE = type(QObject)
EXPECTED_TYPE = type(QObject)


class TestQgsSymbolLayer(unittest.TestCase):
Expand Down

0 comments on commit 982da52

Please sign in to comment.