[pypy-svn] r16429 - pypy/dist/pypy/tool/pytest
hpk at codespeak.net
hpk at codespeak.net
Wed Aug 24 21:08:27 CEST 2005
Author: hpk
Date: Wed Aug 24 21:08:27 2005
New Revision: 16429
Modified:
pypy/dist/pypy/tool/pytest/appsupport.py
Log:
only use frame when there is no AssertionError messages
provided
Modified: pypy/dist/pypy/tool/pytest/appsupport.py
==============================================================================
--- pypy/dist/pypy/tool/pytest/appsupport.py (original)
+++ pypy/dist/pypy/tool/pytest/appsupport.py Wed Aug 24 21:08:27 2005
@@ -97,7 +97,6 @@
space.wrap('__init__'))
space.call_args(w_parent_init, __args__.prepend(w_self))
framestack = space.getexecutioncontext().framestack
- frame = framestack.top(0)
## # Argh! we may see app-level helpers in the frame stack!
## # that's very probably very bad...
## if frame.code.co_name == 'normalize_exception':
@@ -108,6 +107,7 @@
if args_w:
w_msg = args_w[0]
else:
+ frame = framestack.top(0)
runner = AppFrame(frame)
try:
source = runner.statement
More information about the Pypy-commit
mailing list