test: cover UNIX sockets in feature_proxy.py
This commit is contained in:
2 files changed
+89
-8
No files matched your search
@@ -158,3 +158,12 @@ def test_ipv6_local():
|
||||
except socket.error:
|
||||
have_ipv6 = False
|
||||
return have_ipv6
|
||||
|
||||
def test_unix_socket():
|
||||
'''Return True if UNIX sockets are available on this platform.'''
|
||||
try:
|
||||
socket.AF_UNIX
|
||||
except AttributeError:
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
Reference in new issue
Block a user