mirror of https://github.com/python/cpython
test_hash: Fix a BytesWarning in get_hash_command()
This commit is contained in:
parent
a0aa88ce89
commit
0f54db3a85
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue