File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import json
22import pprint
33import re
4+ import socket
45import threading
56import time as ttime
67from typing import Any
7- import socket
88
99import pytest
1010import requests
2222 wait_for_manager_state_idle ,
2323)
2424
25+
2526def get_free_tcp_port ():
2627 with socket .socket (socket .AF_INET , socket .SOCK_STREAM ) as s :
2728 s .bind (("127.0.0.1" , 0 ))
2829 return s .getsockname ()[1 ]
2930
31+
3032class _ReceiveStreamedConsoleOutput (threading .Thread ):
3133 """
3234 Catch streaming console output and save messages to the buffer. The method is intended
Original file line number Diff line number Diff line change 11import json
22import pprint
3+ import socket
34import threading
45import time as ttime
5- import socket
66
77import pytest
88from bluesky_queueserver .manager .tests .common import re_manager_cmd , re_manager_factory # noqa F401
2020 wait_for_manager_state_idle ,
2121)
2222
23+
2324def get_free_tcp_port ():
2425 with socket .socket (socket .AF_INET , socket .SOCK_STREAM ) as s :
2526 s .bind (("127.0.0.1" , 0 ))
You can’t perform that action at this time.
0 commit comments