summaryrefslogtreecommitdiff
path: root/Lib/test/test_hash.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_hash.py')
-rw-r--r--Lib/test/test_hash.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_hash.py b/Lib/test/test_hash.py
index e3ab6e4385..22ebbccb22 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()