diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-08-16 02:27:15 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-08-16 02:27:15 (GMT) |
commit | 80703c89308a2adbdece4c8c044e7ba4d3069f91 (patch) | |
tree | 29613cecabfb191ae8f3d06b41c15f8c87669159 /Lib/test/test_hotshot.py | |
parent | 63dd79ac047c6a1d312261470f8eabc97210b42d (diff) | |
download | cpython-80703c89308a2adbdece4c8c044e7ba4d3069f91.zip cpython-80703c89308a2adbdece4c8c044e7ba4d3069f91.tar.gz cpython-80703c89308a2adbdece4c8c044e7ba4d3069f91.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_hotshot.py')
-rw-r--r-- | Lib/test/test_hotshot.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py index d410099..721da57 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" |