Kaydet (Commit) 0f54db3a authored tarafından Victor Stinner's avatar Victor Stinner

test_hash: Fix a BytesWarning in get_hash_command()

üst a0aa88ce
...@@ -172,7 +172,7 @@ class HashRandomizationTests: ...@@ -172,7 +172,7 @@ class HashRandomizationTests:
# an object to be tested # an object to be tested
def get_hash_command(self, repr_): 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): def get_hash(self, repr_, seed=None):
env = os.environ.copy() 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