Update benchmarks for Python3 while retaining backwards compatibility with Python2

This commit is contained in:
Ivor Blockley
2017-07-18 15:17:28 +10:00
parent fdc8a372a2
commit 0fa6da74cc
6 changed files with 21 additions and 13 deletions

View File

@@ -28,7 +28,7 @@ def div(a, b):
if a == MIN_INT and b == -1:
return MAX_INT
return a / b
return a // b
def mod(a, b):
if b == 0:
@@ -109,4 +109,4 @@ class Benchmark:
response.value = evaluate_expression(request)
def check(self, response, expected):
return response.value == expected
return response.value == expected