None is convertible to QString, the result is a QString where QString.isNull is true.
This commit is contained in:
parent
826678cb91
commit
a5b2237ee0
3 changed files with 7 additions and 6 deletions
|
|
@ -25,12 +25,6 @@ class ObjectNameCase(unittest.TestCase):
|
|||
|
||||
self.assertEqual(name, obj.objectName())
|
||||
|
||||
def testNone(self):
|
||||
#QObject.objectName(None)
|
||||
obj = QObject()
|
||||
|
||||
self.assertRaises(TypeError, obj.setObjectName, None)
|
||||
|
||||
def testDefault(self):
|
||||
#QObject.objectName() default
|
||||
obj = QObject()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue