diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-02-06 20:49:45 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-02-06 20:49:45 (GMT) |
commit | bc27a050a7bef228c5e125c4de938faef56533fd (patch) | |
tree | 6030a0c845f8cbc7d92abfbb3a303c82ed6d8173 /Lib/test/test_hash.py | |
parent | 5e028ae09e3181a1bebc402a9a414b8a79845090 (diff) | |
download | cpython-bc27a050a7bef228c5e125c4de938faef56533fd.zip cpython-bc27a050a7bef228c5e125c4de938faef56533fd.tar.gz cpython-bc27a050a7bef228c5e125c4de938faef56533fd.tar.bz2 |
Issue #20363. Fixed BytesWarning triggerred by test suite.
Patch by Berker Peksag.
Diffstat (limited to 'Lib/test/test_hash.py')
-rw-r--r-- | Lib/test/test_hash.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_hash.py b/Lib/test/test_hash.py index e3ab6e4..22ebbcc 100644 --- a/Lib/test/test_hash.py +++ b/Lib/test/test_hash.py @@ -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() |