diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-02-01 04:26:46 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-02-01 04:26:46 +0100 |
commit | c3ad719e95f37c395f7d812ac104a6b4a3722406 (patch) | |
tree | 3d39f2b5ad8aa0f7e9ae4bce102f79b2dc04f3d9 | |
parent | d8eb98b143af7d7fa04d561f6109e4dbfbfa85cd (diff) | |
download | cpython-c3ad719e95f37c395f7d812ac104a6b4a3722406.tar.gz |
test_hash: Fix a BytesWarning in get_hash_command()
-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 3d2859fdd0..69c169fc6c 100644 --- a/Lib/test/test_hash.py +++ b/Lib/test/test_hash.py @@ -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() |