forked from qt-creator/qt-creator
Debugger: port python debug test to python 3
Change-Id: I1e546b8c151f59432292118a0a6b4d913196e79b Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -33,17 +33,17 @@ def testMath():
|
||||
t = (1, 2, 3)
|
||||
d = {1: 'one', 2: 'two', 'three': 3}
|
||||
s = u'unixcode'
|
||||
x = xrange(1, 10)
|
||||
b = buffer("xxx")
|
||||
x = range(1, 10)
|
||||
# b = buffer("xxx")
|
||||
x = square(a)
|
||||
x = x * a
|
||||
x = x + 1
|
||||
x = x - 1
|
||||
return x
|
||||
|
||||
print cube(3)
|
||||
print cube(4)
|
||||
print cube(5)
|
||||
print(cube(3))
|
||||
print(cube(4))
|
||||
print(cube(5))
|
||||
|
||||
def main():
|
||||
testMath()
|
||||
|
||||
Reference in New Issue
Block a user