forked from indymedia/epicyon
Int cast
parent
bd77f9f403
commit
3d30aa55ce
4
tests.py
4
tests.py
|
@ -2098,7 +2098,7 @@ def testConstantTimeStringCheck():
|
|||
avTime2 = ((end - start) * 1000000 / itterations)
|
||||
timeDiffMicroseconds = abs(avTime2 - avTime1)
|
||||
# time difference should be less than 10uS
|
||||
assert timeDiffMicroseconds < 10
|
||||
assert int(timeDiffMicroseconds) < 10
|
||||
|
||||
# change multiple characters and observe timing difference
|
||||
start = time.time()
|
||||
|
@ -2109,7 +2109,7 @@ def testConstantTimeStringCheck():
|
|||
avTime2 = ((end - start) * 1000000 / itterations)
|
||||
timeDiffMicroseconds = abs(avTime2 - avTime1)
|
||||
# time difference should be less than 10uS
|
||||
assert timeDiffMicroseconds < 10
|
||||
assert int(timeDiffMicroseconds) < 10
|
||||
|
||||
|
||||
def testReplaceEmailQuote():
|
||||
|
|
Loading…
Reference in New Issue