aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qtcore
diff options
context:
space:
mode:
authorrenato <renato.filho@openbossa.org>2009-12-29 17:42:42 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-01-04 18:35:38 -0200
commit0d6a8f3978188f3e343c364806e0bb6e6ac1e643 (patch)
tree0cbc0159ff127bd7cc1902f11e889fb1dccd46e6 /tests/qtcore
parent7729b390d0b8ca82192158cae3865e31b0365573 (diff)
Fix qmentaobject test to work with dynamic metaobject.
Diffstat (limited to 'tests/qtcore')
-rw-r--r--tests/qtcore/qmetaobject_test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/qtcore/qmetaobject_test.py b/tests/qtcore/qmetaobject_test.py
index 457db087c..8271a1f66 100644
--- a/tests/qtcore/qmetaobject_test.py
+++ b/tests/qtcore/qmetaobject_test.py
@@ -23,7 +23,9 @@ class qmetaobject_test(unittest.TestCase):
obj = Foo()
m = obj.metaObject()
self.assertEqual(m.className(), "Foo")
- self.assertEqual(m.methodCount(), QFile().metaObject().methodCount())
+ f = QFile()
+ fm = f.metaObject()
+ self.assertEqual(m.methodCount(), fm.methodCount())
if __name__ == '__main__':