Skip to content

Commit

Permalink
Support Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb-MCaw committed Oct 14, 2024
1 parent a207905 commit 6441345
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions testsuite/tests/publish/multiple-remotes/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit 6441345

Please sign in to comment.