diff --git a/swh/deposit/tests/test_utils.py b/swh/deposit/tests/test_utils.py --- a/swh/deposit/tests/test_utils.py +++ b/swh/deposit/tests/test_utils.py @@ -285,7 +285,10 @@ @pytest.mark.parametrize( "invalid_swhid,error_msg", [ - ("swh:1:cnt:31b5c8cc985d190b5a7ef4878128ebfdc235", "Unexpected length"), + ( + "swh:1:cnt:31b5c8cc985d190b5a7ef4878128ebfdc235", + "Invalid SWHID: invalid syntax", + ), ( "swh:1:dir:c4993c872593e960dc84e4430dbbfbc34fd706d0;visit=swh:1:rev:0175049fc45055a3824a1675ac06e3711619a55a", # noqa "visit qualifier should be a core SWHID with type",