Skip to content

Commit 664cca9

Browse files
committed
tests for windows
1 parent 7370ab3 commit 664cca9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/utils/test_net.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)