File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -91,13 +91,15 @@ def bind_port(sock, host=HOST):
91
91
if sock .family == socket .AF_INET and sock .type == socket .SOCK_STREAM :
92
92
if hasattr (socket , 'SO_REUSEADDR' ):
93
93
if sock .getsockopt (socket .SOL_SOCKET , socket .SO_REUSEADDR ) == 1 :
94
- raise TestFailed ("tests should never set the SO_REUSEADDR " \
95
- "socket option on TCP/IP sockets!" )
94
+ raise support .TestFailed ("tests should never set the "
95
+ "SO_REUSEADDR socket option on "
96
+ "TCP/IP sockets!" )
96
97
if hasattr (socket , 'SO_REUSEPORT' ):
97
98
try :
98
99
if sock .getsockopt (socket .SOL_SOCKET , socket .SO_REUSEPORT ) == 1 :
99
- raise TestFailed ("tests should never set the SO_REUSEPORT " \
100
- "socket option on TCP/IP sockets!" )
100
+ raise support .TestFailed ("tests should never set the "
101
+ "SO_REUSEPORT socket option on "
102
+ "TCP/IP sockets!" )
101
103
except OSError :
102
104
# Python's socket module was compiled using modern headers
103
105
# thus defining SO_REUSEPORT but this process is running
You can’t perform that action at this time.
0 commit comments