[pypy-svn] r78479 - pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test

arigo at codespeak.net arigo at codespeak.net
Fri Oct 29 17:19:45 CEST 2010


Author: arigo
Date: Fri Oct 29 17:19:43 2010
New Revision: 78479

Modified:
   pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_optimizeopt.py
Log:
Whack whack more.


Modified: pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_optimizeopt.py
==============================================================================
--- pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_optimizeopt.py	(original)
+++ pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_optimizeopt.py	Fri Oct 29 17:19:43 2010
@@ -215,7 +215,9 @@
     def __eq__(self, other):
         return type(self) is type(other)      # xxx obscure
     def clone_if_mutable(self):
-        return Storage(self.metainterp_sd, self.original_greenkey)
+        res = Storage(self.metainterp_sd, self.original_greenkey)
+        self.copy_all_attrbutes_into(res)
+        return res
 
 def _sortboxes(boxes):
     _kind2count = {history.INT: 1, history.REF: 2, history.FLOAT: 3}



More information about the Pypy-commit mailing list