aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2010-10-07 15:02:34 -0300
committerLauro Neto <lauro.neto@openbossa.org>2010-10-07 16:10:33 -0300
commit897dd874a34ddfc164ea7dbd4bfd5eaffd02aabd (patch)
treeac86e45ff382cdaa2f59b15d10fc42fcbe38407c /tests
parent8419414b80d9f933c8a3af4ee8fd0ea4aba3820b (diff)
Replace type() comparison with isinstance.
type() comparison won't work due to weakproxy. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Hugo Lima <hugo.lima@openbossa.org> Reviewer: Renato Filho <renato.filho@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/QtUiTools/bug_376.py2
1 files changed, 1 insertions, 1 deletions
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()