Author: Armin Rigo <[email protected]>
Branch: conditional_call_value_4
Changeset: r88594:72f9fe55b596
Date: 2016-11-23 21:37 +0100
http://bitbucket.org/pypy/pypy/changeset/72f9fe55b596/

Log:    failing test

diff --git a/rpython/jit/metainterp/test/test_string.py 
b/rpython/jit/metainterp/test/test_string.py
--- a/rpython/jit/metainterp/test/test_string.py
+++ b/rpython/jit/metainterp/test/test_string.py
@@ -951,3 +951,10 @@
         self.meta_interp(f, [222, 3333])
         self.check_simple_loop({'guard_true': 1, 'int_add': 1,
                                 'int_lt': 1, 'jump': 1})
+
+    def test_string_hashing(self):
+        def f(i):
+            s = str(i)
+            d = {s: s + s}
+            return len(d[s])
+        assert self.interp_operations(f, [222]) == 6
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to