Details
Diff Detail
Event Timeline
test/python_api/event/TestEvents.py | ||
---|---|---|
249–250 | See my comment at 275. | |
259 | See my comment at 275. | |
276–277 | Should we be treating this as a state at all? The 'connected' event is just a notification of being connected and has nothing to do with the inferior state. | |
279 | Re-reading, 'continue' seems correct. Let me know your opinion around other changes and will change this to continue along with them. | |
294 | Perhaps. But whoever has put it, probably wanted to see a message when listener.WaitForEvent times out. That's my guess, which if correct should be have been under an else. We could ofcourse remove this altogether as I think it was a debug print statement which the committer forgot to remove before committing. |
test/python_api/event/TestEvents.py | ||
---|---|---|
276–277 | I think state describes this test (which event to expect next), and not the inferior. Regardless, It's still nice to ensure ordering. | |
294 | Is it an error condition if all 6 attempts fail? Perhaps we should just remove this line and error out below. | |
297 | Error here? |
test/python_api/event/TestEvents.py | ||
---|---|---|
276–277 | If ordering is a concern, how about this: if match.group(1) == 'connected': self.assertTrue(self.context.state == 0) continue If 'connected' is treated as a state, then there will be a different state machine (a different start state) for remote and non-remote platforms. It sounds unnecessarily complicated, but will do it if you really want it. | |
294 | That makes it out of scope for this change. I am going to remove all my changes around this to avoid further mixup. |
test/python_api/event/TestEvents.py | ||
---|---|---|
276–277 | Why not store the previous state as a string? if match.group(1) == 'connected': self.assertTrue(self.context.state == None) self.context.state = 'connected' continue elif match.group(1) == 'running': self.assertTrue(self.context.state == None or self.context.state == 'connected') self.context.state = 'running' continue ... |
Update comment here?