mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
63dd79ac04
commit
80703c8930
1 changed files with 0 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue