summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-22 16:35:23 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-22 16:35:23 -0300
commit276f260f65e07dfb9778ba8d069f18e070852528 (patch)
tree7ce406408c7dc6c848b4243b73cf92f95822adc0
parent934f291fd9ce8a14fcf75b167a592706dfbcb826 (diff)
downloadpyside-276f260f65e07dfb9778ba8d069f18e070852528.tar.gz
pyside-276f260f65e07dfb9778ba8d069f18e070852528.tar.xz
pyside-276f260f65e07dfb9778ba8d069f18e070852528.zip
Fixed unit test related to bug #446.
-rw-r--r--tests/QtCore/qobject_property_test.py4
-rw-r--r--tests/QtNetwork/bug_446.py3
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/QtCore/qobject_property_test.py b/tests/QtCore/qobject_property_test.py
index 6e7046d..bc38dbb 100644
--- a/tests/QtCore/qobject_property_test.py
+++ b/tests/QtCore/qobject_property_test.py
@@ -34,7 +34,7 @@ class MyObject(QObject):
def trySetPP(self):
self.pp = 0
- pp = Property(int, readPP)
+ pp = Property(int, readPP, constant=True)
class MyObjectWithNotifyProperty(QObject):
def __init__(self, parent=None):
@@ -200,7 +200,7 @@ class MetaPropertyTest(unittest.TestCase):
mo = obj.metaObject()
self.assertEqual(mo.propertyCount(), 2)
p = mo.property(1)
- self.assertFalsee(p.isConstant())
+ self.assertFalse(p.isConstant())
if __name__ == '__main__':
unittest.main()
diff --git a/tests/QtNetwork/bug_446.py b/tests/QtNetwork/bug_446.py
index 3aa57da..d3a9d09 100644
--- a/tests/QtNetwork/bug_446.py
+++ b/tests/QtNetwork/bug_446.py
@@ -19,8 +19,7 @@ class HttpSignalsCase(UsesQCoreApplication):
self.server.close()
def onReadReady(self):
- buf = None
- data = self.client.read(buf, 100)
+ data = self.client.read(100)
self.assertEqual(data.size(), len(HttpSignalsCase.DATA))
self.assertEqual(data, HttpSignalsCase.DATA)
self.done()