mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Issue #20363. Fixed BytesWarning triggerred by test suite.
Patch by Berker Peksag.
This commit is contained in:
commit
a26b3f183d
4 changed files with 5 additions and 5 deletions
|
|
@ -172,7 +172,7 @@ class HashRandomizationTests:
|
|||
# an object to be tested
|
||||
|
||||
def get_hash_command(self, repr_):
|
||||
return 'print(hash(eval(%r.decode("utf-8"))))' % repr_.encode("utf-8")
|
||||
return 'print(hash(eval(%a)))' % repr_
|
||||
|
||||
def get_hash(self, repr_, seed=None):
|
||||
env = os.environ.copy()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue