aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-10-06 11:41:23 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:56:11 -0300
commite90255bf7e8fc340cc184cabb65402ca7acf3d4e (patch)
tree58c1e4014ab543d77b6e563410f57fd03df1d693
parent676b2b579d1f9ebd4300a93fed740f1543154157 (diff)
Updated QtUiTools modue to works with python 2.x and 3.x
-rw-r--r--tests/QtUiTools/uiloader_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/QtUiTools/uiloader_test.py b/tests/QtUiTools/uiloader_test.py
index 0b397a003..09bc5bd1c 100644
--- a/tests/QtUiTools/uiloader_test.py
+++ b/tests/QtUiTools/uiloader_test.py
@@ -2,8 +2,8 @@ import unittest
import os
from helper import UsesQApplication
-from PySide.QtGui import *
-from PySide.QtUiTools import *
+from PySide.QtGui import QWidget
+from PySide.QtUiTools import QUiLoader
def get_file_path():
for path in file_path:
@@ -26,7 +26,7 @@ class QUioaderTeste(UsesQApplication):
self.assertEqual(w.findChild(QWidget, "grandson_object"), child.findChild(QWidget, "grandson_object"))
def testLoadFileUnicodeFilePath(self):
- filePath = unicode(os.path.join(os.path.dirname(__file__), 'test.ui'))
+ filePath = str(os.path.join(os.path.dirname(__file__), 'test.ui'))
loader = QUiLoader()
parent = QWidget()
w = loader.load(filePath, parent)