Remove wrapper for classes: QString, QStringRef, QLatin1String, QStringMatcher, QChar and QLatin1Char.
This commit is contained in:
parent
24a9445906
commit
e39bfefde9
32 changed files with 187 additions and 1189 deletions
|
|
@ -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())
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue