Author: Armin Rigo <[email protected]>
Branch: rdict-experiments-3
Changeset: r67297:330b97b84a06
Date: 2013-10-10 16:47 +0200
http://bitbucket.org/pypy/pypy/changeset/330b97b84a06/

Log:    Some more tests kind-of-passing

diff --git a/rpython/rtyper/test/test_rdict.py 
b/rpython/rtyper/test/test_rdict.py
--- a/rpython/rtyper/test/test_rdict.py
+++ b/rpython/rtyper/test/test_rdict.py
@@ -1071,9 +1071,9 @@
                     del d[chr(ord('A') - i)]
             return d
         res = self.interpret(func, [0])
-        assert len(res.entries) > rdict.DICT_INITSIZE
+        assert rdict._ll_len_of_d_indexes(res) > rdict.DICT_INITSIZE
         res = self.interpret(func, [1])
-        assert len(res.entries) == rdict.DICT_INITSIZE
+        assert rdict._ll_len_of_d_indexes(res) == rdict.DICT_INITSIZE
 
     def test_dict_valid_resize(self):
         # see if we find our keys after resize
@@ -1378,7 +1378,7 @@
                        DictValue(None, annmodel.SomeString(value_can_be_none)))
         dictrepr.setup()
         print dictrepr.lowleveltype
-        for key, value in dictrepr.DICTENTRY._adtmeths.items():
+        for key, value in dictrepr.DICT.entries.TO._adtmeths.items():
             print '    %s = %s' % (key, value)
         l_dict = rdict.ll_newdict(dictrepr.DICT)
         referencetable = [None] * 400
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to