diff options
author | renato <renato.filho@openbossa.org> | 2009-12-29 17:42:42 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-04 18:35:38 -0200 |
commit | 0d6a8f3978188f3e343c364806e0bb6e6ac1e643 (patch) | |
tree | 0cbc0159ff127bd7cc1902f11e889fb1dccd46e6 /tests/qtcore | |
parent | 7729b390d0b8ca82192158cae3865e31b0365573 (diff) |
Fix qmentaobject test to work with dynamic metaobject.
Diffstat (limited to 'tests/qtcore')
-rw-r--r-- | tests/qtcore/qmetaobject_test.py | 4 |
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__': |