Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions launch_testing/launch_testing/legacy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ def add_output_test(
assert any(match_patterns)

def on_process_exit(event, context):
nonlocal match_patterns
if any(match_patterns):
# Finish test instead of failing to prevent process exit
# and process output event handlers from racing.
Expand All @@ -208,7 +207,6 @@ def on_process_exit(event, context):
)

def on_shutdown(event, context):
nonlocal match_patterns
if any(match_patterns):
process_name = action.process_details['name']
reason = 'not all {} output matched!'.format(process_name)
Expand Down