diff options
Diffstat (limited to 'tests/QtCore/qbytearray_test.py')
-rw-r--r-- | tests/QtCore/qbytearray_test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/QtCore/qbytearray_test.py b/tests/QtCore/qbytearray_test.py index 4a600ba31..330a7d09f 100644 --- a/tests/QtCore/qbytearray_test.py +++ b/tests/QtCore/qbytearray_test.py @@ -148,6 +148,12 @@ class TestPickler(unittest.TestCase): ba2 = pickle.loads(output.getvalue()) self.assertEqual(ba, ba2) +class QByteArrayBug720(unittest.TestCase): + def testIt(self): + ba = QByteArray("32\"1\x00123") + self.assertEqual(str(ba), "32\"1\x00123") + self.assertEqual(repr(ba), "PySide.QtCore.QByteArray(\"32\\\"1\x00123\")") + if __name__ == '__main__': unittest.main() |