Skip to content

Commit

Permalink
correct test
Browse files Browse the repository at this point in the history
  • Loading branch information
warner committed Jul 1, 2016
1 parent 6f991f6 commit 43bb2a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test-ports.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def allocate_tcp_port():
s.close()
return None
tried.add(port)
s = _make_socket()
try:
s.bind(("0.0.0.0", port))
s.listen(5)
s.close()
return port
Expand Down

0 comments on commit 43bb2a9

Please sign in to comment.