mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Issue #20363. Fixed BytesWarning triggerred by test suite.
Patch by Berker Peksag.
This commit is contained in:
parent
5e028ae09e
commit
bc27a050a7
3 changed files with 4 additions and 4 deletions
|
|
@ -138,7 +138,7 @@ class HashRandomizationTests:
|
|||
# an object to be tested
|
||||
|
||||
def get_hash_command(self, repr_):
|
||||
return 'print(hash(%s))' % repr_
|
||||
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