[pypy-svn] r47305 - pypy/branch/kill-keepalives-again/pypy/rpython/test
arigo at codespeak.net
arigo at codespeak.net
Mon Oct 8 19:38:19 CEST 2007
Author: arigo
Date: Mon Oct 8 19:38:18 2007
New Revision: 47305
Modified:
pypy/branch/kill-keepalives-again/pypy/rpython/test/test_llinterp.py
Log:
Unsure about this test. Why did we use to get an AttributeError
instead of the RuntimError: object already freed?
Modified: pypy/branch/kill-keepalives-again/pypy/rpython/test/test_llinterp.py
==============================================================================
--- pypy/branch/kill-keepalives-again/pypy/rpython/test/test_llinterp.py (original)
+++ pypy/branch/kill-keepalives-again/pypy/rpython/test/test_llinterp.py Mon Oct 8 19:38:18 2007
@@ -441,8 +441,9 @@
return globala.next.i
interp, graph = get_interpreter(h, [])
fgraph = graph.startblock.operations[0].args[0].value._obj.graph
+ assert fgraph.startblock.operations[0].opname == 'malloc'
fgraph.startblock.operations[0].args[1] = inputconst(Void, {'flavor': "stack"})
- py.test.raises(AttributeError, "interp.eval_graph(graph, [])")
+ py.test.raises(RuntimeError, "interp.eval_graph(graph, [])")
#__________________________________________________________________
# example functions for testing the LLInterpreter
More information about the Pypy-commit
mailing list