From: Tim Peters Date: Fri, 16 Aug 2002 02:27:15 +0000 (+0000) Subject: check_events(): This was failing under -O, due to not expecting any X-Git-Tag: v2.3c1~4439 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80703c89308a2adbdece4c8c044e7ba4d3069f91;p=python check_events(): This was failing under -O, due to not expecting any LINE events when not __debug__. But we get them anyway under -O now, so just stop special-casing non-__debug__ mode. --- diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py index d410099b9e..721da57f1f 100644 --- a/Lib/test/test_hotshot.py +++ b/Lib/test/test_hotshot.py @@ -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"