Skip to content

Commit

Permalink
Fix Python 3.6 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cottsay committed Mar 5, 2025
1 parent d7ee108 commit 7798cca
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions test/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,14 @@ def add_arguments(self, *, parser):
raise RuntimeError('custom exception')


@patch('colcon_core.output_style.get_output_style_extensions', dict)
def test_main():
with ExtensionPointContext(
extension1=Extension1, extension2=Extension2, extension3=Extension3
):
with (
patch(
'colcon_core.argument_parser.get_argument_parser_extensions',
return_value={}
),
patch(
'colcon_core.output_style.get_output_style_extensions',
return_value={}
),
with patch(
'colcon_core.argument_parser.get_argument_parser_extensions',
return_value={}
):
with pytest.raises(SystemExit) as e:
main(argv=['--help'])
Expand Down

0 comments on commit 7798cca

Please sign in to comment.