[pypy-svn] r26471 - pypy/dist/pypy/rpython/test

nik at codespeak.net nik at codespeak.net
Fri Apr 28 03:30:08 CEST 2006


Author: nik
Date: Fri Apr 28 03:29:56 2006
New Revision: 26471

Modified:
   pypy/dist/pypy/rpython/test/test_rdict.py
Log:
add a failing test about recursive dicts. the plan is to remove
ForwardReferences form the Dict type. this test fails for an
unrelated reason, due to recursive string representation.


Modified: pypy/dist/pypy/rpython/test/test_rdict.py
==============================================================================
--- pypy/dist/pypy/rpython/test/test_rdict.py	(original)
+++ pypy/dist/pypy/rpython/test/test_rdict.py	Fri Apr 28 03:29:56 2006
@@ -892,3 +892,13 @@
             dic.clear()
             return len(dic)
         assert self.interpret(func, ()) == 0
+
+    def test_recursive(self):
+        py.test.skip("work-in-progress")
+        def func(i):
+            dic = {i: {}}
+            dic[i] = dic
+            return dic[i]
+        res = self.interpret(func, [5])
+        assert res.ll_get(5) is res
+



More information about the Pypy-commit mailing list