Skip to content

Commit cd8984d

Browse files
authored
Fix test failure when has_working_ipv6 generates an exception (#1022)
1 parent 686febd commit cd8984d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def has_working_ipv6():
5959
if not socket.has_ipv6:
6060
return False
6161

62+
sock = None
6263
try:
6364
sock = socket.socket(socket.AF_INET6)
6465
sock.bind(('::1', 0))

0 commit comments

Comments
 (0)