Skip to content

Commit

Permalink
Fixing delimited text test cases for SIP API change
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrook committed Jun 18, 2013
1 parent da0e4f3 commit 9b04f13
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 119 deletions.
14 changes: 9 additions & 5 deletions tests/src/python/test_qgsdelimitedtextprovider.py
Expand Up @@ -33,12 +33,18 @@

rebuildTests = 'REBUILD_DELIMITED_TEXT_TESTS' in os.environ;


import sip
#API_NAMES = ["QDate", "QDateTime", "QString", "QTextStream", "QTime", "QUrl", "QVariant"]
API_NAMES = ["QString", "QUrl", "QVariant"]
API_VERSION = 2
for name in API_NAMES:
sip.setapi(name, API_VERSION)

from PyQt4.QtCore import (QVariant,
QCoreApplication,
QUrl,
QObject,
QString,
pyqtSignal
QObject
)

from qgis.core import (QGis,
Expand All @@ -59,11 +65,9 @@
#expectedFailure
)

import sip

QGISAPP, CANVAS, IFACE, PARENT = getQgisTestApp()


sipversion=str(sip.getapi('QVariant'))
sipwanted='2'
geomkey = "#geometry"
Expand Down

0 comments on commit 9b04f13

Please sign in to comment.