Skip to content

Commit 16744b7

Browse files
committed
Remove match from test
1 parent 942e444 commit 16744b7

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/tests/_internal/server/services/requirements/test_combine.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -278,16 +278,9 @@ def test_same_non_auto_values_return_same(self):
278278
)
279279

280280
def test_different_non_auto_values_raise_error(self):
281-
with pytest.raises(
282-
CombineError,
283-
match="spot_policy values SpotPolicy.SPOT and SpotPolicy.ONDEMAND cannot be combined",
284-
):
281+
with pytest.raises(CombineError):
285282
_combine_spot_policy_optional(SpotPolicy.SPOT, SpotPolicy.ONDEMAND)
286-
287-
with pytest.raises(
288-
CombineError,
289-
match="spot_policy values SpotPolicy.ONDEMAND and SpotPolicy.SPOT cannot be combined",
290-
):
283+
with pytest.raises(CombineError):
291284
_combine_spot_policy_optional(SpotPolicy.ONDEMAND, SpotPolicy.SPOT)
292285

293286

0 commit comments

Comments
 (0)