Issue #20363. Fixed BytesWarning triggerred by test suite.

Patch by Berker Peksag.
This commit is contained in:
Serhiy Storchaka 2014-02-06 22:52:23 +02:00
commit a26b3f183d
4 changed files with 5 additions and 5 deletions

View file

@ -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()