WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Fix flaky SSE tests: test_sse_client_basic_connection_mounted_app and test_request_context_isolation #1777

@maxisbey

Description

@maxisbey

Initial Checks

Description

Two SSE tests in tests/shared/test_sse.py are flaky:

Affected tests:

  • test_sse_client_basic_connection_mounted_app (line 326)
  • test_request_context_isolation (line 462)

CI evidence: https://github.com/modelcontextprotocol/python-sdk/actions/runs/19330649603/job/55292600721?pr=1586

Test locations:

  • tests/shared/test_sse.py:326 - test_sse_client_basic_connection_mounted_app
  • tests/shared/test_sse.py:462 - test_request_context_isolation

Related Issues

Python & MCP Python SDK

Latest SDK version

AI Disclaimer

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Nice to haves, rare edge casesbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions