Skip to content

Commit

Permalink
Fix merge mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery committed Dec 13, 2021
1 parent cc1c709 commit e258583
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytest_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class GuardedSocket(socket.socket):
""" socket guard to disable socket creation (from pytest-socket) """
def __new__(cls, family=-1, type=-1, proto=-1, fileno=None):
try:
is_unix_socket = family == socket.AF_UNIX
except AttributeError:
# AF_UNIX not supported on Windows https://bugs.python.org/issue33408
is_unix_socket = False
Expand Down

0 comments on commit e258583

Please sign in to comment.