Attempt to work on kokoro

pull/20838/head
Richard Belleville 5 years ago
parent d78563eb43
commit 90ee052cb8
  1. BIN
      src/python/grpcio_tests/tests/stress/single_thread.cprof
  2. 6
      src/python/grpcio_tests/tests/unit/framework/common/__init__.py

@ -35,7 +35,11 @@ def get_socket(bind_address='localhost',
- the socket object itself - the socket object itself
""" """
_sock_options = sock_options if sock_options else [] _sock_options = sock_options if sock_options else []
for address_family in (socket.AF_INET, socket.AF_INET6): if socket.has_ipv6:
address_families = (socket.AF_INET6, socket.AF_INET)
else:
address_families = (socket.AF_INET)
for address_family in address_families:
try: try:
sock = socket.socket(address_family, socket.SOCK_STREAM) sock = socket.socket(address_family, socket.SOCK_STREAM)
for sock_option in _sock_options: for sock_option in _sock_options:

Loading…
Cancel
Save