Fixed unit test related to bug #446.
This commit is contained in:
parent
934f291fd9
commit
276f260f65
2 changed files with 3 additions and 4 deletions
|
|
@ -34,7 +34,7 @@ class MyObject(QObject):
|
||||||
def trySetPP(self):
|
def trySetPP(self):
|
||||||
self.pp = 0
|
self.pp = 0
|
||||||
|
|
||||||
pp = Property(int, readPP)
|
pp = Property(int, readPP, constant=True)
|
||||||
|
|
||||||
class MyObjectWithNotifyProperty(QObject):
|
class MyObjectWithNotifyProperty(QObject):
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
|
|
@ -200,7 +200,7 @@ class MetaPropertyTest(unittest.TestCase):
|
||||||
mo = obj.metaObject()
|
mo = obj.metaObject()
|
||||||
self.assertEqual(mo.propertyCount(), 2)
|
self.assertEqual(mo.propertyCount(), 2)
|
||||||
p = mo.property(1)
|
p = mo.property(1)
|
||||||
self.assertFalsee(p.isConstant())
|
self.assertFalse(p.isConstant())
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,7 @@ class HttpSignalsCase(UsesQCoreApplication):
|
||||||
self.server.close()
|
self.server.close()
|
||||||
|
|
||||||
def onReadReady(self):
|
def onReadReady(self):
|
||||||
buf = None
|
data = self.client.read(100)
|
||||||
data = self.client.read(buf, 100)
|
|
||||||
self.assertEqual(data.size(), len(HttpSignalsCase.DATA))
|
self.assertEqual(data.size(), len(HttpSignalsCase.DATA))
|
||||||
self.assertEqual(data, HttpSignalsCase.DATA)
|
self.assertEqual(data, HttpSignalsCase.DATA)
|
||||||
self.done()
|
self.done()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue