test_hash: Fix a BytesWarning in get_hash_command()

This commit is contained in:
Victor Stinner 2014-02-01 04:26:46 +01:00
parent a0aa88ce89
commit 0f54db3a85
1 changed files with 1 additions and 1 deletions

View File

@ -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()