Skip to content

Commit 133b638

Browse files
Apply ruff formatting
1 parent 4fe9ff6 commit 133b638

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/issues/test_552_windows_hang.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
async def test_windows_stdio_client_no_hang():
1414
"""
1515
Test for issue #552: stdio_client hangs on Windows 11.
16-
17-
This test verifies that the stdio_client can be created and properly
16+
17+
This test verifies that the stdio_client can be created and properly
1818
closed on Windows without hanging, even when the subprocess exits immediately.
1919
The original issue was that the client would hang indefinitely.
2020
"""
@@ -24,7 +24,7 @@ async def test_windows_stdio_client_no_hang():
2424
command=sys.executable,
2525
args=["-c", "import sys; sys.exit(0)"],
2626
)
27-
27+
2828
# The test passes if we can attempt to create the client without hanging
2929
# We expect it to fail quickly when the subprocess exits
3030
with anyio.fail_after(5): # 5 second timeout - should fail much faster
@@ -39,7 +39,7 @@ async def test_windows_stdio_client_no_hang():
3939
async def test_windows_stdio_client_json_echo():
4040
"""
4141
Test stdio_client with a JSON echo server on Windows.
42-
42+
4343
This test creates a subprocess that echoes JSON-RPC messages,
4444
verifying that the stdio_client can communicate properly on Windows.
4545
"""
@@ -60,16 +60,16 @@ async def test_windows_stdio_client_json_echo():
6060
# If not valid JSON, just exit
6161
break
6262
""").strip()
63-
63+
6464
params = StdioServerParameters(
6565
command=sys.executable,
6666
args=["-c", echo_script],
6767
)
68-
68+
6969
# Test should complete without hanging
7070
with anyio.fail_after(5):
7171
async with stdio_client(params) as (read, write):
7272
# The stdio_client should establish connection without hanging
7373
# Just creating the client successfully is the main test
7474
# The original issue was it would hang here
75-
pass
75+
pass

0 commit comments

Comments
 (0)