aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/qvariant_pyobject_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtCore/qvariant_pyobject_test.py')
-rw-r--r--tests/QtCore/qvariant_pyobject_test.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/QtCore/qvariant_pyobject_test.py b/tests/QtCore/qvariant_pyobject_test.py
index 82da5556f..2000a0199 100644
--- a/tests/QtCore/qvariant_pyobject_test.py
+++ b/tests/QtCore/qvariant_pyobject_test.py
@@ -3,19 +3,17 @@
import unittest
-from PySide.QtCore import QSize, QVariant, QString
+from PySide.QtCore import *
class Dummy(object):
'''Pure python sample class'''
pass
-
class MySize(QSize):
'''Extended class'''
pass
-
class QVariantPurePython(unittest.TestCase):
'''QVariant + pure python classes'''
@@ -26,7 +24,6 @@ class QVariantPurePython(unittest.TestCase):
# inherited type name from other binding
self.assertEqual('PyQt_PyObject', obj.typeName())
-
class QVariantInheritedPython(unittest.TestCase):
'''QVariant + classes inherited from C++'''
@@ -63,7 +60,7 @@ class QVariantToPyObject(unittest.TestCase):
'''QVariant(python string).toPyObject() return an equal QString'''
d = 'abc'
obj = QVariant('abc')
- self.assert_(isinstance(obj.toPyObject(), QString))
+ self.assert_(isinstance(obj.toPyObject(), unicode))
self.assertEqual(d, obj.toPyObject())