From 897dd874a34ddfc164ea7dbd4bfd5eaffd02aabd Mon Sep 17 00:00:00 2001 From: Lauro Neto Date: Thu, 7 Oct 2010 15:02:34 -0300 Subject: Replace type() comparison with isinstance. type() comparison won't work due to weakproxy. Reviewer: Luciano Wolf Reviewer: Hugo Lima Reviewer: Renato Filho --- tests/QtUiTools/bug_376.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/QtUiTools/bug_376.py') diff --git a/tests/QtUiTools/bug_376.py b/tests/QtUiTools/bug_376.py index 2bd6b5ca2..054a02036 100644 --- a/tests/QtUiTools/bug_376.py +++ b/tests/QtUiTools/bug_376.py @@ -12,7 +12,7 @@ class BugTest(UsesQApplication): filePath = os.path.join(os.path.dirname(__file__), 'test.ui') result = loader.load(filePath, w) - self.assertEqual(type(result.child_object), QtGui.QFrame) + self.assert_(isinstance(result.child_object, QtGui.QFrame)) if __name__ == '__main__': unittest.main() -- cgit v1.2.3