[pypy-svn] r58295 - in pypy/dist/pypy: rlib/test rpython/test

fijal at codespeak.net fijal at codespeak.net
Sun Sep 21 13:32:20 CEST 2008


Author: fijal
Date: Sun Sep 21 13:32:19 2008
New Revision: 58295

Modified:
   pypy/dist/pypy/rlib/test/test_debug.py
   pypy/dist/pypy/rpython/test/test_llinterp.py
Log:
Fix the test by passing around additional config options. Allow this.


Modified: pypy/dist/pypy/rlib/test/test_debug.py
==============================================================================
--- pypy/dist/pypy/rlib/test/test_debug.py	(original)
+++ pypy/dist/pypy/rlib/test/test_debug.py	Sun Sep 21 13:32:19 2008
@@ -35,4 +35,5 @@
         result.append(4)
         return len(result)
 
-    py.test.raises(TooLateForChange, interpret, f, [])
+    py.test.raises(TooLateForChange, interpret, f, [], 
+                   list_comprehension_operations=True)

Modified: pypy/dist/pypy/rpython/test/test_llinterp.py
==============================================================================
--- pypy/dist/pypy/rpython/test/test_llinterp.py	(original)
+++ pypy/dist/pypy/rpython/test/test_llinterp.py	Sun Sep 21 13:32:19 2008
@@ -111,11 +111,11 @@
 
 def interpret(func, values, view='auto', viewbefore='auto', policy=None,
               someobjects=False, type_system="lltype", backendopt=False,
-              config=None, malloc_check=True):
+              config=None, malloc_check=True, **kwargs):
     interp, graph = get_interpreter(func, values, view, viewbefore, policy,
                                     someobjects, type_system=type_system,
                                     backendopt=backendopt, config=config,
-                                    malloc_check=malloc_check)
+                                    malloc_check=malloc_check, **kwargs)
     result = interp.eval_graph(graph, values)
     if malloc_check and interp.mallocs:
         raise MallocMismatch(interp.mallocs)



More information about the Pypy-commit mailing list