From: Nicholas Bastin Date: Mon, 22 Mar 2004 19:23:46 +0000 (+0000) Subject: Fix (really) for tight loop line events X-Git-Tag: v2.4a1~608 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee6c9b8613336912bea827b607f7454c5368cd57;p=thirdparty%2FPython%2Fcpython.git Fix (really) for tight loop line events --- diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py index 4103794ee3ba..6aac8df8ae6c 100644 --- a/Lib/test/test_trace.py +++ b/Lib/test/test_trace.py @@ -147,7 +147,7 @@ def tightloop_example(): try: i = 0 while 1: - print items[i]; i+=1 + b = items[i]; i+=1 except IndexError: pass @@ -159,6 +159,7 @@ tightloop_example.events = [(0, 'call'), (5, 'line'), (5, 'line'), (5, 'line'), + (5, 'line'), (5, 'exception'), (6, 'line'), (7, 'line'),