Updated pyside and signals tests to works with python 2.x and 3.x

This commit is contained in:
Renato Filho 2011-10-06 11:43:05 -03:00 • committed by Hugo Parente Lima
commit 6869a49bc3
3 changed files with 19 additions and 22 deletions

View file

@ -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__':