aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-20 15:33:34 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-01-20 15:34:01 -0200
commitca75446b9b1b2160175db520691b56c0e16bfd12 (patch)
tree718b86b9a9f2c4e58b9f81591647d7a4e4709816 /tests
parent23ee9d02262a44deb48cc8b713ea66ba9a25c085 (diff)
Fix qdatastream unit test and typesystem.
Reviewed by Lauro Mora <lauto.neto@openbossa.org>
Diffstat (limited to 'tests')
-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 d0173fc95..d71ed2f24 100644
--- a/tests/qtcore/qdatastream_test.py
+++ b/tests/qtcore/qdatastream_test.py
@@ -24,16 +24,16 @@ class QDataStreamWrite(unittest.TestCase):
'''QDataStream.writeUInt8 (accepting str of size 1)'''
x = 0xFF
self.write.writeUInt8(chr(x))
- y = ord(self.read.readUInt8())
+ y = self.read.readUInt8()
self.assertEqual(x, y)
self.assertRaises(TypeError, self.write.writeUInt8, 'aaaaa')
def testWriteInt8(self):
'''QDataStream.writeInt8 (accepting str of size 1)'''
- x = 0xFF
+ x = 65
self.write.writeInt8(chr(x))
- y = ord(self.read.readInt8())
+ y = self.read.readInt8()
self.assertEqual(x, y)
self.assertRaises(TypeError, self.write.writeInt8, 'aaaaa')
@@ -47,7 +47,7 @@ class QDataStreamWrite(unittest.TestCase):
def testWriteInt8Int(self):
'''QDataStream.writeInt8 (accepting integer)'''
- x = 0xFF
+ x = 65
self.write.writeInt8(x)
y = self.read.readInt8()
self.assertEqual(x, y)