aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-02-03 18:04:16 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:53:52 -0300
commit702cd168e1af7ef854aad7091529e4ce6e9df833 (patch)
treeb00746d4576be00fc6fede0b27da3f69a05d7917 /tests/QtCore
parent4f4abdb2be8417ae5f75340e673341a833b9a14c (diff)
Fix comparisson of QByteArray with Python strings that have zeroes inside.
Diffstat (limited to 'tests/QtCore')
-rw-r--r--tests/QtCore/qbytearray_test.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/QtCore/qbytearray_test.py b/tests/QtCore/qbytearray_test.py
index f031332d9..396545f4e 100644
--- a/tests/QtCore/qbytearray_test.py
+++ b/tests/QtCore/qbytearray_test.py
@@ -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__'''