File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def _log_error(*args):
123123
124124
125125@pytest .mark .skipif (not hasattr (socket , 'SO_REUSEPORT' ), reason = "System does not have SO_REUSEPORT" )
126- def test_set_so_reuseport_if_available ():
126+ def test_set_so_reuseport_if_available_is_present ():
127127 """Test that setting socket.SO_REUSEPORT only OSError errno.ENOPROTOOPT is trapped."""
128128 sock = socket .socket (socket .AF_INET , socket .SOCK_DGRAM )
129129 with pytest .raises (OSError ), patch ("socket.socket.setsockopt" , side_effect = OSError ):
@@ -134,7 +134,7 @@ def test_set_so_reuseport_if_available():
134134
135135
136136@pytest .mark .skipif (hasattr (socket , 'SO_REUSEPORT' ), reason = "System has SO_REUSEPORT" )
137- def test_set_so_reuseport_if_available ():
137+ def test_set_so_reuseport_if_available_not_present ():
138138 """Test that we do not try to set SO_REUSEPORT if it is not present."""
139139 sock = socket .socket (socket .AF_INET , socket .SOCK_DGRAM )
140140 with patch ("socket.socket.setsockopt" , side_effect = OSError ):
You can’t perform that action at this time.
0 commit comments