None is convertible to QString, the result is a QString where QString.isNull is true.

This commit is contained in:
Hugo Parente Lima 2010-04-05 18:10:23 -03:00
commit a5b2237ee0
3 changed files with 7 additions and 6 deletions

View file

@ -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()