Skip to content

Commit a230fc9

Browse files
committed
Early import qgis in tests to set SIP API
1 parent 5558ff9 commit a230fc9

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tests/src/python/test_qgsappstartup.py

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

17+
import qgis
1718
from PyQt4 import QtCore
1819
import sys
1920
import os

tests/src/python/test_qgsblendmodes.py

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
# This will get replaced with a git SHA1 when you do a git archive
2424
__revision__ = '$Format:%H$'
2525

26+
import qgis
2627
import os
2728

2829
from PyQt4.QtCore import QSize

tests/src/python/test_qgscomposition.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# This will get replaced with a git SHA1 when you do a git archive
1313
__revision__ = '$Format:%H$'
1414

15+
import qgis
1516
import os
1617

1718
from PyQt4.QtCore import QFileInfo, QDir

0 commit comments

Comments
 (0)