Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #1744/d5d149ec backport][2.21] Do not assert on a specific error message #1745

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Aug 19, 2024

This is a backport of PR #1744 as merged into main (d5d149e).

Once an upstream library changes its behaviour, we may observe
different error messages depending on the context.

This change fixes the following error:

assert "[Name or service not known]"
in ctx.value.task.error["description"]
E AssertionError: assert '[Name or service not known]'
in 'Cannot connect to host i-am-an-invalid-url.com:80 ssl:default [None]'

[noissue]

Once an upstream library changes its behaviour, we may observe
different error messages depending on the context.

This change fixes the following error:
> assert "[Name or service not known]"
	in ctx.value.task.error["description"]
E AssertionError: assert '[Name or service not known]'
	in 'Cannot connect to host i-am-an-invalid-url.com:80 ssl:default [None]'

[noissue]

(cherry picked from commit d5d149e)
@ipanova ipanova enabled auto-merge (rebase) August 19, 2024 08:53
@ipanova ipanova merged commit c0c456a into 2.21 Aug 19, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants