Fix bug 717 - "QByteArray doesn't honor \0 inside strings."
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
e14378b126
commit
ea5dd4f257
3 changed files with 80 additions and 17 deletions
|
|
@ -152,7 +152,7 @@ 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\")")
|
||||
self.assertEqual(repr(ba), "PySide.QtCore.QByteArray('32\"1\\x00123')")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue