Skip to content

Commit

Permalink
🎨 reformat files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ousret committed Dec 4, 2024
1 parent fb96b09 commit fb6d60e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dummyserver/testcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ def teardown_class(cls) -> None:
if hasattr(cls, "server_thread"):
cls.server_thread.join(0.1)
if cls.server_thread.is_alive():
warnings.warn("SocketDummyServerTestCase leaks a thread beyond authorized lifetime", ResourceWarning)
warnings.warn(
"SocketDummyServerTestCase leaks a thread beyond authorized lifetime",
ResourceWarning,
)

def assert_header_received(
self,
Expand Down
4 changes: 3 additions & 1 deletion test/with_dummyserver/test_socketlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,9 @@ def consume_ssl_socket(listener: socket.socket) -> None:
ssl_sock.close()
ssl_sock.sendall(b"hello")
assert ssl_sock.fileno() > 0
ssl_sock.sendall(b"\r\n\r\n") # sent to make sure the thread exit (server_start) properly!
ssl_sock.sendall(
b"\r\n\r\n"
) # sent to make sure the thread exit (server_start) properly!


class TestProxyManager(SocketDummyServerTestCase):
Expand Down

0 comments on commit fb6d60e

Please sign in to comment.