diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-10-06 11:43:05 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:56:12 -0300 |
commit | 6869a49bc389166b307b56efa3a2677325c86247 (patch) | |
tree | bf934f4e8289a475a879bafaad933b39a08a4417 /tests/pysidetest/modelview_test.py | |
parent | 1874425448ef3331041e5510d7abf8c2ee9ab2c4 (diff) |
Updated pyside and signals tests to works with python 2.x and 3.x
Diffstat (limited to 'tests/pysidetest/modelview_test.py')
-rw-r--r-- | tests/pysidetest/modelview_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/pysidetest/modelview_test.py b/tests/pysidetest/modelview_test.py index 07374562b..f1cd8bbb1 100644 --- a/tests/pysidetest/modelview_test.py +++ b/tests/pysidetest/modelview_test.py @@ -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__': |