]> granicus.if.org Git - python/commitdiff
Fix (really) for tight loop line events
authorNicholas Bastin <nick.bastin@gmail.com>
Mon, 22 Mar 2004 19:23:46 +0000 (19:23 +0000)
committerNicholas Bastin <nick.bastin@gmail.com>
Mon, 22 Mar 2004 19:23:46 +0000 (19:23 +0000)
Lib/test/test_trace.py

index 4103794ee3ba971f1dfe50f40f038d7264ac1c5c..6aac8df8ae6c76101260e23f7effc3e9649eb355 100644 (file)
@@ -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'),