summaryrefslogtreecommitdiffstats
path: root/tests/QtCore/qdatastream_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtCore/qdatastream_test.py')
-rw-r--r--tests/QtCore/qdatastream_test.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/QtCore/qdatastream_test.py b/tests/QtCore/qdatastream_test.py
index 7ccc12e..ad74457 100644
--- a/tests/QtCore/qdatastream_test.py
+++ b/tests/QtCore/qdatastream_test.py
@@ -311,15 +311,15 @@ class QDataStreamShiftBitArray(unittest.TestCase):
class QDataStreamRawData(unittest.TestCase):
def testRawData(self):
data = QDataStream()
- self.assertEqual(data.readRawData(4), '\x00\x00\x00\x00')
+ self.assertEqual(data.readRawData(4), None)
ba = QByteArray()
data = QDataStream(ba, QIODevice.WriteOnly)
- data.writeRawData('ABC')
- self.assertEqual(ba, 'ABC')
+ data.writeRawData('AB\x00C')
+ self.assertEqual(ba.data(), 'AB\x00C')
data = QDataStream(ba)
- self.assertEqual(data.readRawData(4), 'ABC\x00')
+ self.assertEqual(data.readRawData(4), 'AB\x00C')
if __name__ == '__main__':
unittest.main()