MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / get_free_addresses

Method get_free_addresses

tests/test_pydevconsole.py:219–230  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

217 return debugger_thread
218
219 def get_free_addresses(self):
220 from _pydev_bundle.pydev_localhost import get_socket_names
221
222 socket_names = get_socket_names(2, True)
223 port0 = socket_names[0][1]
224 port1 = socket_names[1][1]
225
226 assert port0 != port1
227 assert port0 > 0
228 assert port1 > 0
229
230 return port0, port1
231
232 def test_server(self):
233 self.original_stdout = sys.stdout

Callers 2

interpreterMethod · 0.95
test_serverMethod · 0.95

Calls 1

get_socket_namesFunction · 0.90

Tested by

no test coverage detected