diff --git a/testsuite/tests/publish/multiple-remotes/test.py b/testsuite/tests/publish/multiple-remotes/test.py index b9ea5f040..d15a89679 100644 --- a/testsuite/tests/publish/multiple-remotes/test.py +++ b/testsuite/tests/publish/multiple-remotes/test.py @@ -66,7 +66,7 @@ def test_publishing( extra_args: list[str], remote: int, commit_id: str, - output_pattern: str | None = None, + output_pattern: str | type[None] = None, ): """ Run `alr --force publish --skip-submit` with the specified additional args, @@ -92,7 +92,10 @@ def test_publishing( assert_match(rf'.*url = "git\+file:.*remote{remote}"', manifest) assert_match(rf'.*commit = "{commit_id}"', manifest) -def check_publishing_fails(extra_args: list[str], error_pattern: str | None): +def check_publishing_fails( + extra_args: list[str], + error_pattern: str | type[None] = None, +): """ Run `alr --force publish --skip-submit` with the specified additional args, and assert that it fails (optionally asserting the output matches a regex