Skip to content

Commit

Permalink
backport syntax for python < 3.12 (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishaschwartz committed Oct 9, 2024
1 parent 7c28fa5 commit 41ee2ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def run_cli(*args: str, **kwargs: Mapping) -> subprocess.CompletedProcess:

@pytest.fixture(scope="session")
def populator_help_pattern():
return re.compile(f"{{({',?|'.join([imp.replace('.', '\\.') for imp in implementations.__all__])},?)+}}")
name_options = ',?|'.join([imp.replace('.', '\\.') for imp in implementations.__all__])
return re.compile(f"{{({name_options},?)+}}")


def test_help():
Expand Down

0 comments on commit 41ee2ed

Please sign in to comment.