Updated pyside and signals tests to works with python 2.x and 3.x
This commit is contained in:
parent
1874425448
commit
6869a49bc3
3 changed files with 19 additions and 22 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import unittest
|
||||
import py3kcompat as py3k
|
||||
from testbinding import TestView
|
||||
from PySide.QtCore import QAbstractListModel, QObject, QModelIndex
|
||||
|
||||
|
|
@ -62,7 +63,7 @@ class ModelViewTest(unittest.TestCase):
|
|||
model = ListModelThatReturnsString()
|
||||
view = TestView(model)
|
||||
obj = view.getData()
|
||||
self.assertEqual(type(obj), unicode)
|
||||
self.assertEqual(type(obj), py3k.unicode)
|
||||
self.assertEqual(obj, 'string')
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue