Fix comparisson of QByteArray with Python strings that have zeroes inside.

This commit is contained in:
Hugo Parente Lima 2011-02-03 18:04:16 -02:00
commit 702cd168e1
3 changed files with 49 additions and 0 deletions

View file

@ -49,6 +49,7 @@ class QByteArrayData(unittest.TestCase):
ba = QByteArray(s1)
s2 = ba.data()
self.assertEqual(s1, s2)
self.assertEqual(s1, ba)
class QByteArrayOperatorAtSetter(unittest.TestCase):
'''Test case for operator QByteArray[] - __setitem__'''