Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/test_version_schemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,8 @@ class NotVersionProtocol:
ep.load.return_value = NotVersionProtocol
mocker.patch.object(metadata, "entry_points", return_value=(ep,))

with pytest.warns(match="VersionProtocol"):
with pytest.warns() as warnings:
get_version_scheme(config.settings, "any")
assert "Version scheme any does not implement the VersionProtocol" in str(
warnings[0].message
)