From 702cd168e1af7ef854aad7091529e4ce6e9df833 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Thu, 3 Feb 2011 18:04:16 -0200 Subject: Fix comparisson of QByteArray with Python strings that have zeroes inside. --- tests/QtCore/qbytearray_test.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/QtCore') 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__''' -- cgit v1.2.3