summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2015-01-04 00:36:59 -0800
committerGregory P. Smith <greg@krypto.org>2015-01-04 00:36:59 -0800
commit9eb1faf39b0d7cedebbb341453144814e4c1b68f (patch)
tree2c025016f1a7ebe3cd24362bd3ef17745605d4c8
parent7037cf7300d06bb9031cb02b4fcb41b8ebc4f743 (diff)
parent5719ef17bae439eac9c59fc7a36ade60e6341659 (diff)
downloadcpython-git-9eb1faf39b0d7cedebbb341453144814e4c1b68f.tar.gz
fix issue23157 - time_hashlib hadn't been ported to Python 3.
-rw-r--r--Lib/test/time_hashlib.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/time_hashlib.py b/Lib/test/time_hashlib.py
index d939463063..2585ecb782 100644
--- a/Lib/test/time_hashlib.py
+++ b/Lib/test/time_hashlib.py
@@ -1,7 +1,8 @@
# It's intended that this script be run by hand. It runs speed tests on
# hashlib functions; it does not test for correctness.
-import sys, time
+import sys
+import time
import hashlib
@@ -9,8 +10,8 @@ def creatorFunc():
raise RuntimeError("eek, creatorFunc not overridden")
def test_scaled_msg(scale, name):
- iterations = 106201/scale * 20
- longStr = 'Z'*scale
+ iterations = 106201//scale * 20
+ longStr = b'Z'*scale
localCF = creatorFunc
start = time.time()