summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-01 03:26:46 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-01 03:26:46 (GMT)
commit0f54db3a858c85b23c2bbf547c0b22f1a369fc31 (patch)
tree1fe946cf3284a4a079a085112e575247b51ed908 /Lib
parenta0aa88ce893d6948d971dfecc2126dc7cb88dfea (diff)
downloadcpython-0f54db3a858c85b23c2bbf547c0b22f1a369fc31.zip
cpython-0f54db3a858c85b23c2bbf547c0b22f1a369fc31.tar.gz
cpython-0f54db3a858c85b23c2bbf547c0b22f1a369fc31.tar.bz2
test_hash: Fix a BytesWarning in get_hash_command()
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_hash.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_hash.py b/Lib/test/test_hash.py
index 3d2859f..69c169f 100644
--- a/Lib/test/test_hash.py
+++ b/Lib/test/test_hash.py
@@ -172,7 +172,7 @@ class HashRandomizationTests:
# an object to be tested
def get_hash_command(self, repr_):
- return 'print(hash(eval(%s.decode("utf-8"))))' % repr_.encode("utf-8")
+ return 'print(hash(eval(%r.decode("utf-8"))))' % repr_.encode("utf-8")
def get_hash(self, repr_, seed=None):
env = os.environ.copy()