Fix comparisson of QByteArray with Python strings that have zeroes inside.
This commit is contained in:
parent
4f4abdb2be
commit
702cd168e1
3 changed files with 49 additions and 0 deletions
|
|
@ -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__'''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue