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 16, 2024
1 parent a207905 commit 6a29f1c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions testsuite/tests/publish/multiple-remotes/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import os
import re
import subprocess
from typing import Optional

from drivers.alr import run_alr, init_local_crate
from drivers.asserts import assert_match
Expand Down Expand Up @@ -66,7 +67,7 @@ def test_publishing(
extra_args: list[str],
remote: int,
commit_id: str,
output_pattern: str | None = None,
output_pattern: Optional[str] = None,
):
"""
Run `alr --force publish --skip-submit` with the specified additional args,
Expand All @@ -92,7 +93,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: Optional[str] = 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 6a29f1c

Please sign in to comment.