Update benchmarks for Python3 while retaining backwards compatibility with Python2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user