Commit 38390016 authored by Victor Stinner's avatar Victor Stinner

test_hash: Fix a BytesWarning in get_hash_command()

parent f959132f
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment