summaryrefslogtreecommitdiffstats
path: root/tests/QtSql
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-06-10 19:57:18 -0300
committerHugo Parente Lima <hugo.lima@openbossa.org>2010-06-10 20:18:59 -0300
commit1b6337d8b4a65988dfbeb0eed67bc6584b25fdee (patch)
treee6efde3e5d00d4530f321894e62801ab8eac72e8 /tests/QtSql
parentd8a192b5e14e996992a98766cd39ca2028e6474e (diff)
downloadpyside-1b6337d8b4a65988dfbeb0eed67bc6584b25fdee.tar.gz
pyside-1b6337d8b4a65988dfbeb0eed67bc6584b25fdee.tar.xz
pyside-1b6337d8b4a65988dfbeb0eed67bc6584b25fdee.zip
Removed QVariant from PySide.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests/QtSql')
-rw-r--r--tests/QtSql/qsqldatabaseandqueries_test.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/QtSql/qsqldatabaseandqueries_test.py b/tests/QtSql/qsqldatabaseandqueries_test.py
index 2d5a0a3..7a9d30a 100644
--- a/tests/QtSql/qsqldatabaseandqueries_test.py
+++ b/tests/QtSql/qsqldatabaseandqueries_test.py
@@ -39,16 +39,16 @@ class SqlDatabaseCreationDestructionAndQueries(unittest.TestCase):
query.exec_("INSERT INTO person VALUES(101, 'George', 'Harrison')")
query.prepare("INSERT INTO person (id, firstname, lastname) "
"VALUES (:id, :firstname, :lastname)")
- query.bindValue(":id", QVariant(102))
- query.bindValue(":firstname", QVariant("John"))
- query.bindValue(":lastname", QVariant("Lennon"))
+ query.bindValue(":id", 102)
+ query.bindValue(":firstname", "John")
+ query.bindValue(":lastname", "Lennon")
query.exec_()
lastname = ''
query.exec_("SELECT lastname FROM person where id=101")
self.assertTrue(query.isActive())
query.next()
- lastname = query.value(0).toString()
+ lastname = query.value(0)
self.assertEqual(lastname, 'Harrison')
if __name__ == '__main__':