mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
test_hash: Fix a BytesWarning in get_hash_command()
This commit is contained in:
parent
a0aa88ce89
commit
0f54db3a85
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue