We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e76d0e2 commit 728bfcdCopy full SHA for 728bfcd
tests/test_application.py
@@ -48,6 +48,7 @@ def test_is_port_available():
48
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
49
test_port = find_free_port()
50
s.bind(("127.0.0.1", test_port))
51
+ s.listen(1) # Put the socket in listening state to actually reserve the port
52
53
try:
54
# Now the port should not be available
0 commit comments