Kaydet (Commit) c10039c0 authored tarafından Fred Drake's avatar Fred Drake

Do not expect line number events when running under "python -O".

The right fix is to generate line number events anyway ;-), but this will
have to do for now.
üst 397a6547
......@@ -53,6 +53,9 @@ 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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment