We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d0367d commit 38483e9Copy full SHA for 38483e9
1 file changed
tests/test_version_schemes.py
@@ -61,5 +61,8 @@ class NotVersionProtocol:
61
ep.load.return_value = NotVersionProtocol
62
mocker.patch.object(metadata, "entry_points", return_value=(ep,))
63
64
- with pytest.warns(match="VersionProtocol"):
+ with pytest.warns() as warnings:
65
get_version_scheme(config.settings, "any")
66
+ assert "Version scheme any does not implement the VersionProtocol" in str(
67
+ warnings[0].message
68
+ )
0 commit comments