Skip to content

Commit 8359301

Browse files
sobyfelixweinberger
authored andcommitted
linter differences of opinion
1 parent 615336a commit 8359301

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/server/test_streamable_http_manager.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ async def mock_receive():
135135
# Give other tasks a chance to run. This is important for the finally block.
136136
await anyio.sleep(0.01)
137137

138-
assert session_id not in manager._server_instances, (
139-
"Session ID should be removed from _server_instances after graceful exit"
140-
)
138+
assert (
139+
session_id not in manager._server_instances
140+
), "Session ID should be removed from _server_instances after graceful exit"
141141
assert not manager._server_instances, "No sessions should be tracked after the only session exits gracefully"
142142

143143

@@ -191,7 +191,7 @@ async def mock_receive():
191191
# Give other tasks a chance to run to ensure the finally block executes
192192
await anyio.sleep(0.01)
193193

194-
assert session_id not in manager._server_instances, (
195-
"Session ID should be removed from _server_instances after an exception"
196-
)
194+
assert (
195+
session_id not in manager._server_instances
196+
), "Session ID should be removed from _server_instances after an exception"
197197
assert not manager._server_instances, "No sessions should be tracked after the only session crashes"

0 commit comments

Comments
 (0)