Debugger: port python debug test to python 3

Change-Id: I1e546b8c151f59432292118a0a6b4d913196e79b
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2017-10-24 11:02:00 +02:00
parent 7dad30f160
commit 2bd1ea30b9

View File

@@ -33,17 +33,17 @@ def testMath():
t = (1, 2, 3) t = (1, 2, 3)
d = {1: 'one', 2: 'two', 'three': 3} d = {1: 'one', 2: 'two', 'three': 3}
s = u'unixcode' s = u'unixcode'
x = xrange(1, 10) x = range(1, 10)
b = buffer("xxx") # b = buffer("xxx")
x = square(a) x = square(a)
x = x * a x = x * a
x = x + 1 x = x + 1
x = x - 1 x = x - 1
return x return x
print cube(3) print(cube(3))
print cube(4) print(cube(4))
print cube(5) print(cube(5))
def main(): def main():
testMath() testMath()