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

@ -105,6 +105,10 @@ class QStringConstructor(unittest.TestCase):
self.assertEqual(obj1, obj2)
def testNullQString(self):
s = QString(None)
self.assertTrue(s.isNull())
def testQStringFromPy(self):
#QString(const char*)
sample = 'a new string'