Fix 720 - "QByteArray prints itself wrong, on tp_print and tp_repr"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
85f65194ef
commit
f3961387a9
2 changed files with 15 additions and 8 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue