We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c61508b commit e6b1b79Copy full SHA for e6b1b79
1 file changed
Lib/test/test_socket.py
@@ -202,6 +202,7 @@ def _have_socket_hyperv():
202
s.close()
203
return True
204
205
+
206
def _find_service(expected_protocols,
207
services_file='/etc/services'):
208
if not os.path.exists(services_file):
@@ -223,6 +224,7 @@ def _find_service(expected_protocols,
223
224
return service_name
225
return None
226
227
228
@contextlib.contextmanager
229
def socket_setdefaulttimeout(timeout):
230
old_timeout = socket.getdefaulttimeout()
0 commit comments