[py-svn] r7874 - py/dist/py/magic
hpk at codespeak.net
hpk at codespeak.net
Thu Dec 16 11:19:32 CET 2004
Author: hpk
Date: Thu Dec 16 11:19:32 2004
New Revision: 7874
Modified:
py/dist/py/magic/exprinfo.py
Log:
use RunnerFrame ...
Modified: py/dist/py/magic/exprinfo.py
==============================================================================
--- py/dist/py/magic/exprinfo.py (original)
+++ py/dist/py/magic/exprinfo.py Thu Dec 16 11:19:32 2004
@@ -12,7 +12,6 @@
#import traceback
#traceback.print_exc()
-
class RunnerFrame:
"""Wrapper around a Python frame holding f_locals and f_globals
in which expressions can be evaluated."""
@@ -450,6 +449,7 @@
tb = magic.dyncode.listtb(tb)[-1]
source = dyncode.getparseablestartingblock(tb)
frame = tb.tb_frame
+ frame = RunnerFrame(frame.f_globals, frame.f_locals)
x = interpret(source, frame)
if not isinstance(x, str):
raise TypeError, "interpret returned non-string %r" % (x,)
More information about the pytest-commit
mailing list