Skip to content

Commit 0119442

Browse files
committed
add comment for pylint disable
1 parent 2f8efe1 commit 0119442

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_connection.py

+1
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ async def test_handshake_exception_before_accept() -> None:
443443
async def handler(request):
444444
raise ValueError()
445445

446+
# pylint fails to resolve that BaseExceptionGroup will always be available
446447
with pytest.raises((BaseExceptionGroup, ValueError)) as exc: # pylint: disable=possibly-used-before-assignment
447448
async with trio.open_nursery() as nursery:
448449
server = await nursery.start(serve_websocket, handler, HOST, 0,

0 commit comments

Comments
 (0)