Thanks to visit codestin.com Credit goes to github.com
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 4227947 commit 1ff0ee0Copy full SHA for 1ff0ee0
1 file changed
Lib/test/test_asyncio/test_events.py
@@ -1192,8 +1192,12 @@ def wait():
1192
'selector': self.loop._selector.__class__.__name__})
1193
1194
def test_sock_connect_address(self):
1195
+ families = [socket.AF_INET]
1196
+ if support.IPV6_ENABLED:
1197
+ families.append(socket.AF_INET6)
1198
+
1199
address = ('www.python.org', 80)
- for family in (socket.AF_INET, socket.AF_INET6):
1200
+ for family in families:
1201
for sock_type in (socket.SOCK_STREAM, socket.SOCK_DGRAM):
1202
sock = socket.socket(family, sock_type)
1203
with sock:
0 commit comments