summaryrefslogtreecommitdiffstats
path: root/tests/QtSql
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-06-03 15:34:17 -0300
committerHugo Parente Lima <hugo.lima@openbossa.org>2010-06-10 14:57:41 -0300
commite39bfefde9edda662f51eeaf9a482f209c7f1217 (patch)
treea4add52f8ca3460fcaed99c6d9c7fc810f341a49 /tests/QtSql
parent24a944590663582df72aefd1929ec19ba3c6414f (diff)
downloadpyside-e39bfefde9edda662f51eeaf9a482f209c7f1217.tar.gz
pyside-e39bfefde9edda662f51eeaf9a482f209c7f1217.tar.xz
pyside-e39bfefde9edda662f51eeaf9a482f209c7f1217.zip
Remove wrapper for classes: QString, QStringRef, QLatin1String, QStringMatcher, QChar and QLatin1Char.
Diffstat (limited to 'tests/QtSql')
-rwxr-xr-xtests/QtSql/qsqldatabaseandqueries_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/QtSql/qsqldatabaseandqueries_test.py b/tests/QtSql/qsqldatabaseandqueries_test.py
index 49f2209..2d5a0a3 100755
--- a/tests/QtSql/qsqldatabaseandqueries_test.py
+++ b/tests/QtSql/qsqldatabaseandqueries_test.py
@@ -5,14 +5,14 @@ import sys
import unittest
from PySide import QtSql
-from PySide.QtCore import QVariant, QString
+from PySide.QtCore import *
class SqlDatabaseCreationDestructionAndQueries(unittest.TestCase):
'''Test cases for QtSql database creation, destruction and queries'''
def setUp(self):
#Acquire resources
- self.assertFalse(QtSql.QSqlDatabase.drivers().isEmpty(), "installed Qt has no DB drivers")
+ self.assertFalse(not QtSql.QSqlDatabase.drivers(), "installed Qt has no DB drivers")
self.assertTrue("QSQLITE" in QtSql.QSqlDatabase.drivers(), "\"QSQLITE\" driver not available in this Qt version")
self.db = QtSql.QSqlDatabase.addDatabase("QSQLITE")
self.db.setDatabaseName(":memory:")