aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qtcore
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-02-03 18:56:53 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-02-03 19:18:25 -0200
commit193cc8025910b92f764e6e1339ce2ec213b20cc5 (patch)
tree622389d24f19b3247492c1a6dd9519b6576d2025 /tests/qtcore
parent3ec23a2a898e46a89d7f1b744e5b381a29454350 (diff)
Fix duck punching unit test.
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'tests/qtcore')
-rw-r--r--tests/qtcore/duck_punching_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qtcore/duck_punching_test.py b/tests/qtcore/duck_punching_test.py
index 9ddb2999d..e20c0c1b1 100644
--- a/tests/qtcore/duck_punching_test.py
+++ b/tests/qtcore/duck_punching_test.py
@@ -33,7 +33,7 @@ class TestDuckPunchingOnQObjectInstance(UsesQCoreApplication):
def childEvent(obj, event):
self.duck_childEvent_called = True
QObject.childEvent(obj, event)
- parent.event = types.MethodType(childEvent, parent, QObject)
+ parent.childEvent = types.MethodType(childEvent, parent, QObject)
child = QObject()
child.setParent(parent)
self.assert_(self.duck_childEvent_called)
@@ -46,7 +46,7 @@ class TestDuckPunchingOnQObjectInstance(UsesQCoreApplication):
self.duck_childEvent_called = True
child = QObject()
child.setParent(parent)
- parent.event = types.MethodType(childEvent, parent, QObject)
+ parent.childEvent = types.MethodType(childEvent, parent, QObject)
child = QObject()
child.setParent(parent)
self.assert_(self.duck_childEvent_called)