From: <fwi...@us...> - 2008-10-16 02:56:19
|
Revision: 5415 http://jython.svn.sourceforge.net/jython/?rev=5415&view=rev Author: fwierzbicki Date: 2008-10-16 02:56:10 +0000 (Thu, 16 Oct 2008) Log Message: ----------- First get test102.py working again... Modified Paths: -------------- trunk/jython/bugtests/test102.py Modified: trunk/jython/bugtests/test102.py =================================================================== --- trunk/jython/bugtests/test102.py 2008-10-16 02:21:51 UTC (rev 5414) +++ trunk/jython/bugtests/test102.py 2008-10-16 02:56:10 UTC (rev 5415) @@ -2,17 +2,15 @@ Check stack frame locals. """ -import support +import sys def vars(): - import sys tb = sys.exc_info()[2] while tb.tb_next is not None: tb = tb.tb_next - return tb.tb_frame.getf_locals() + return tb.tb_frame.f_locals - def h(): a = 1 b = 2 @@ -21,8 +19,5 @@ try: h() except: - if vars() != {'a':1, 'b':2 }: - raise support.TestError("Unexpected contents of stackframe locals %s" % vars()) + assert(vars() == {'a':1, 'b':2 }) - - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |