[pypy-svn] r29908 - in pypy/dist/pypy/rpython: memory module/test

arigo at codespeak.net arigo at codespeak.net
Sun Jul 9 18:55:50 CEST 2006


Author: arigo
Date: Sun Jul  9 18:55:48 2006
New Revision: 29908

Modified:
   pypy/dist/pypy/rpython/memory/gc.py
   pypy/dist/pypy/rpython/module/test/test_ll_strtod.py
Log:
Minor fixes.


Modified: pypy/dist/pypy/rpython/memory/gc.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/gc.py	(original)
+++ pypy/dist/pypy/rpython/memory/gc.py	Sun Jul  9 18:55:48 2006
@@ -1067,7 +1067,7 @@
         while roots.non_empty():
             root = roots.pop()
             self.decref(root.address[0])
-        root.delete()
+        roots.delete()
         self.collecting = False
 
     def write_barrier(self, addr, addr_to, addr_struct):

Modified: pypy/dist/pypy/rpython/module/test/test_ll_strtod.py
==============================================================================
--- pypy/dist/pypy/rpython/module/test/test_ll_strtod.py	(original)
+++ pypy/dist/pypy/rpython/module/test/test_ll_strtod.py	Sun Jul  9 18:55:48 2006
@@ -1,6 +1,7 @@
 
-from pypy.rpython.module.ll_strtod import ll_strtod_parts_to_float, ll_strtod_formatd
+from pypy.rpython.module.ll_strtod import ll_strtod_parts_to_float
 from pypy.rpython.module.support import LLSupport
+from pypy.rpython.lltypesystem.module.ll_strtod import Implementation
 
 
 def test_parts_to_float():
@@ -18,5 +19,5 @@
     
 
 def test_formatd():
-    res = ll_strtod_formatd(LLSupport.to_rstr("%.2f"), 1.5)
+    res = Implementation.ll_strtod_formatd(LLSupport.to_rstr("%.2f"), 1.5)
     assert LLSupport.from_rstr(res) == "1.50"



More information about the Pypy-commit mailing list