]> granicus.if.org Git - python/commitdiff
check_events(): This was failing under -O, due to not expecting any
authorTim Peters <tim.peters@gmail.com>
Fri, 16 Aug 2002 02:27:15 +0000 (02:27 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 16 Aug 2002 02:27:15 +0000 (02:27 +0000)
LINE events when not __debug__.  But we get them anyway under -O now,
so just stop special-casing non-__debug__ mode.

Lib/test/test_hotshot.py

index d410099b9e58418c9b53ffb30ab43917af29e31c..721da57f1f7395f0616e9e51d8ea8f99a9c2f2cb 100644 (file)
@@ -53,9 +53,6 @@ class HotShotTestCase(unittest.TestCase):
 
     def check_events(self, expected):
         events = self.get_events_wotime()
-        if not __debug__:
-            # Running under -O, so we don't get LINE events
-            expected = [ev for ev in expected if ev[0] != LINE]
         if events != expected:
             self.fail(
                 "events did not match expectation; got:\n%s\nexpected:\n%s"