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

bpo-40275: Move transient_internet from test.support to socket_helper #19711

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Apr 25, 2020

Copy link
Member

@vstinner vstinner left a comment

LGTM, apart the duplicated import.

def transient_internet(resource_name, *, timeout=_NOT_SET, errnos=()):
"""Return a context manager that raises ResourceDenied when various issues
with the Internet connection manifest themselves as exceptions."""
import socket
Copy link
Member

@vstinner vstinner Apr 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's already imported at top-level.

@serhiy-storchaka serhiy-storchaka marked this pull request as ready for review Apr 29, 2020
@serhiy-storchaka serhiy-storchaka requested review from berkerpeksag, tiran and a team as code owners Apr 29, 2020
@serhiy-storchaka serhiy-storchaka merged commit bfb1cf4 into python:master Apr 29, 2020
4 checks passed
@serhiy-storchaka serhiy-storchaka deleted the test-support-transient_internet branch Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants