Title: Fix flaky test test_response in test_streamable_http.py · Issue #1573 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Fix flaky test test_response in test_streamable_http.py · Issue #1573 · modelcontextprotocol/python-sdk
X Title: Fix flaky test test_response in test_streamable_http.py · Issue #1573 · modelcontextprotocol/python-sdk
Description: Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue Description The test is flaky. See...
Open Graph Description: Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this ...
X Description: Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening t...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/1573
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix flaky test test_response in test_streamable_http.py","articleBody":"### Initial Checks\n\n- [x] I confirm that I'm using the latest version of MCP Python SDK\n- [x] I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue\n\n### Description\n\nThe test is flaky. See: https://github.com/modelcontextprotocol/python-sdk/actions/runs/19020904095/job/54315849330?pr=1565\n\nOutput:\n\n```python\nbasic_server = None, basic_server_url = 'http://127.0.0.1:50695/'\n\n def test_response(basic_server: None, basic_server_url: str):\n \"\"\"Test response handling for a valid request.\"\"\"\n mcp_url = f\"{basic_server_url}/mcp\"\n response = requests.post(\n mcp_url,\n headers={\n \"Accept\": \"application/json, text/event-stream\",\n \"Content-Type\": \"application/json\",\n },\n json=INIT_REQUEST,\n )\n\u003e assert response.status_code == 200\nE assert 404 == 200\nE + where 404 = \u003cResponse [404]\u003e.status_code\n\ntests/shared/test_streamable_http.py:624: AssertionError\n```\n\n### Example Code\n\n```Python\n\n```\n\n### Python \u0026 MCP Python SDK\n\n```Text\n1.19.0\n```","author":{"url":"https://github.com/maxisbey","@type":"Person","name":"maxisbey"},"datePublished":"2025-11-04T14:02:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1573/python-sdk/issues/1573"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:17e83e46-1e06-ec8e-6723-ca98317782cc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B85C:F8C9C:195EB9F:244AEB0:6A5A3971 |
| html-safe-nonce | a5b513865fdf2fcdb10e57f780ff412860ce9f012035d747a7e21028eb3ce9ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODVDOkY4QzlDOjE5NUVCOUY6MjQ0QUVCMDo2QTVBMzk3MSIsInZpc2l0b3JfaWQiOiIzNjEwNjAzMjUzMTc0Nzc4MjI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0df323fba2732668a440359721ba71d584f8b066966c03a6fa22f3d5c5deea6d |
| hovercard-subject-tag | issue:3586741292 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/python-sdk/1573/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e04adf500360439d7a77c883b437f64f1763de218a8610b468767d35c5c56ce1/modelcontextprotocol/python-sdk/issues/1573 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e04adf500360439d7a77c883b437f64f1763de218a8610b468767d35c5c56ce1/modelcontextprotocol/python-sdk/issues/1573 |
| og:image:alt | Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxisbey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19c67ad7579d2401ff06e88a32ef45460fbb40fab3191c7f7582d5e166f326fc |
| turbo-cache-control | no-preview |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e618485bff22dab2ef1ffb4e34e4e6626688df69 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width