Skip to content

Commit d4c0e6a

Browse files
committed
Pre-commit checks
1 parent e6d1c96 commit d4c0e6a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

bluesky_httpserver/tests/test_console_output.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import json
22
import pprint
33
import re
4+
import socket
45
import threading
56
import time as ttime
67
from typing import Any
7-
import socket
88

99
import pytest
1010
import requests
@@ -22,11 +22,13 @@
2222
wait_for_manager_state_idle,
2323
)
2424

25+
2526
def 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+
3032
class _ReceiveStreamedConsoleOutput(threading.Thread):
3133
"""
3234
Catch streaming console output and save messages to the buffer. The method is intended

bluesky_httpserver/tests/test_system_info_socket.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import json
22
import pprint
3+
import socket
34
import threading
45
import time as ttime
5-
import socket
66

77
import pytest
88
from bluesky_queueserver.manager.tests.common import re_manager_cmd, re_manager_factory # noqa F401
@@ -20,6 +20,7 @@
2020
wait_for_manager_state_idle,
2121
)
2222

23+
2324
def get_free_tcp_port():
2425
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
2526
s.bind(("127.0.0.1", 0))

0 commit comments

Comments
 (0)