Skip to content

Commit dd136f6

Browse files
committedMay 2, 2016
Fixup for AppStartup test which requires SIP API V1
1 parent a230fc9 commit dd136f6

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed
 

‎python/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def __hash__(self):
174174
# TODO: Fixme, this creates an invalid variant, not a NULL one
175175
from PyQt5.QtCore import QVariant
176176
NULL = QVariant()
177-
except ImportError:
177+
except (ImportError, RuntimeError):
178178
pass
179179

180180

‎tests/src/python/test_qgsappstartup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# This will get replaced with a git SHA1 when you do a git archive
1515
__revision__ = '$Format:%H$'
1616

17-
import qgis
1817
from PyQt4 import QtCore
1918
import sys
2019
import os

‎tests/src/python/utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
import platform
1919
import tempfile
2020

21-
from qgis.PyQt.QtCore import QSize, QDir
22-
from qgis.PyQt.QtWidgets import QWidget
21+
from PyQt4.QtCore import QSize, QDir
22+
from PyQt4.QtGui import QWidget
2323

2424
from qgis.core import (
2525
QgsApplication,

0 commit comments

Comments
 (0)
Please sign in to comment.