Updated QtGui modue to works with python 2.x and 3.x
This commit is contained in:
parent
edaefbce48
commit
d9dd319232
15 changed files with 94 additions and 71 deletions
|
|
@ -9,9 +9,9 @@ class TestBug569(unittest.TestCase):
|
|||
types = (QTableWidgetItem, QListWidgetItem, QTreeWidgetItem)
|
||||
for t in types:
|
||||
a = t()
|
||||
a.__lt__ = lambda(other) : True
|
||||
a.__lt__ = lambda other : True
|
||||
b = t()
|
||||
b.__lt__ = lambda(other) : False
|
||||
b.__lt__ = lambda other : False
|
||||
self.assertTrue(a < b)
|
||||
self.assertFalse(b < a)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue