summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-10-06 11:33:59 -0300
committerRenato Filho <renato.filho@openbossa.org>2011-10-06 15:43:31 -0300
commitd450084d0a961146326933d24ff9cd254127c2fe (patch)
tree015480608aeafe257fa4f48171e8a3be06ee2589 /tests
parent5525de20d99808f4092d9dc264d3324496e68e55 (diff)
downloadpyside-d450084d0a961146326933d24ff9cd254127c2fe.tar.gz
pyside-d450084d0a961146326933d24ff9cd254127c2fe.tar.xz
pyside-d450084d0a961146326933d24ff9cd254127c2fe.zip
Updated QtDeclarative modue to works with python 2.x and 3.x
Diffstat (limited to 'tests')
-rw-r--r--tests/QtDeclarative/bug_995.py2
-rw-r--r--tests/QtDeclarative/qdeclarativeview_test.py1
-rw-r--r--tests/QtDeclarative/registertype.py4
3 files changed, 3 insertions, 4 deletions
diff --git a/tests/QtDeclarative/bug_995.py b/tests/QtDeclarative/bug_995.py
index acdf148..e44f50e 100644
--- a/tests/QtDeclarative/bug_995.py
+++ b/tests/QtDeclarative/bug_995.py
@@ -9,5 +9,5 @@ view.resize(200, 200)
item = view.itemAt(100, 100)
# it CAN NOT crash here
-print item
+print(item)
diff --git a/tests/QtDeclarative/qdeclarativeview_test.py b/tests/QtDeclarative/qdeclarativeview_test.py
index f8f3a54..468de97 100644
--- a/tests/QtDeclarative/qdeclarativeview_test.py
+++ b/tests/QtDeclarative/qdeclarativeview_test.py
@@ -41,7 +41,6 @@ class TestQDeclarativeView(TimedQApplication):
def testModelExport(self):
- print "TEST"
view = QDeclarativeView()
dataList = [MyObject("Item 1"), MyObject("Item 2"), MyObject("Item 3"), MyObject("Item 4")]
diff --git a/tests/QtDeclarative/registertype.py b/tests/QtDeclarative/registertype.py
index 434dac1..c752ebf 100644
--- a/tests/QtDeclarative/registertype.py
+++ b/tests/QtDeclarative/registertype.py
@@ -50,7 +50,7 @@ class PieChart (QDeclarativeItem):
def __init__(self, parent = None):
QDeclarativeItem.__init__(self, parent)
- self._name = u''
+ self._name = ''
self._slices = []
def getName(self):
@@ -59,7 +59,7 @@ class PieChart (QDeclarativeItem):
def setName(self, value):
self._name = value
- name = Property(unicode, getName, setName)
+ name = Property(str, getName, setName)
def appendSlice(self, _slice):
global appendCalled