diff --git a/pulp_container/tests/functional/api/test_sync.py b/pulp_container/tests/functional/api/test_sync.py index 866a2805e..44c905a0f 100644 --- a/pulp_container/tests/functional/api/test_sync.py +++ b/pulp_container/tests/functional/api/test_sync.py @@ -97,11 +97,9 @@ def test_sync_reclaim_resync( @pytest.mark.parallel def test_sync_invalid_url(synced_container_repository_factory): - with pytest.raises(PulpTaskError) as ctx: + with pytest.raises(PulpTaskError): synced_container_repository_factory(url="http://i-am-an-invalid-url.com/invalid/") - assert "[Name or service not known]" in ctx.value.task.error["description"] - @pytest.mark.parallel @pytest.mark.parametrize(