Skip to content
Snippets Groups Projects
Commit 2bd1ea30 authored by David Schulz's avatar David Schulz
Browse files

Debugger: port python debug test to python 3


Change-Id: I1e546b8c151f59432292118a0a6b4d913196e79b
Reviewed-by: default avatarhjk <hjk@qt.io>
parent 7dad30f1
Branches
No related tags found
No related merge requests found
...@@ -33,17 +33,17 @@ def testMath(): ...@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment