From 0f54db3a858c85b23c2bbf547c0b22f1a369fc31 Mon Sep 17 00:00:00 2001
From: Victor Stinner <victor.stinner@gmail.com>
Date: Sat, 1 Feb 2014 04:26:46 +0100
Subject: test_hash: Fix a BytesWarning in get_hash_command()

---
 Lib/test/test_hash.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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()
-- 
cgit v0.12