Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Nov 2, 2024
1 parent 921228f commit a048385
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_unit/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ def test_missing_version_from_importlib_metadata():
parser.add_argument('-v', action=ImportlibMetadataVersionAction)
with pytest.raises(
ValueError,
match=re.escape(
match=(
"Argument 'version_from' for ImportlibMetadataVersionAction is"
" missing and inferred package name from caller module"
" 'test_exceptions' could not be found",
" 'test_exceptions' could not be found"
),
):
parser.parse_args(['-v'])
Expand All @@ -67,7 +67,7 @@ def test_invalid_package_version_from():
)
with pytest.raises(
importlib.metadata.PackageNotFoundError,
match=re.escape('non_existent_package'),
match='non_existent_package',
):
parser.parse_args(['-v'])

Expand Down

0 comments on commit a048385

Please # to comment.