| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:859e4d84-2849-2c29-8353-3161dbae07d6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E68C:A841C:150E2B2:1E32D24:6A5A2A19 |
| html-safe-nonce | 2a6f00ab17210b771f5656c891039dc3e83611d90e8de548885ee3a143182b20 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjhDOkE4NDFDOjE1MEUyQjI6MUUzMkQyNDo2QTVBMkExOSIsInZpc2l0b3JfaWQiOiI4MjY5NTcxMzMzOTA4MjEyMjQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4a7172ee40469be78dc40fe7d27f953aabd9bfebc57aae4a5a8e968fa21d2b89 |
| hovercard-subject-tag | pull_request:3848207212 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2837/files |
| twitter:image | https://avatars.githubusercontent.com/u/224885523?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/224885523?s=400&v=4 |
| og:image:alt | Backports the transport test deflaking work from main (#2764, #2765, #2767, #2788) to v1.x. Tests-only: the diff touches nothing under src/.
Stacked on #2717 (maxisbey/v1x-interaction-backport), wh... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19c67ad7579d2401ff06e88a32ef45460fbb40fab3191c7f7582d5e166f326fc |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a3dea2706161c733403beb02e41d5765d358d44e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2837%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2837%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2837/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2837/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2837/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2837/files |
|
modelcontextprotocol
| https://github.com/modelcontextprotocol |
| python-sdk | https://github.com/modelcontextprotocol/python-sdk |
|
Notifications
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
|
Fork
3.7k
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
|
Star
23.6k
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
|
Code
| https://github.com/modelcontextprotocol/python-sdk |
|
Issues
255
| https://github.com/modelcontextprotocol/python-sdk/issues |
|
Pull requests
303
| https://github.com/modelcontextprotocol/python-sdk/pulls |
|
Actions
| https://github.com/modelcontextprotocol/python-sdk/actions |
|
Projects
| https://github.com/modelcontextprotocol/python-sdk/projects |
|
Models
| https://github.com/modelcontextprotocol/python-sdk/models |
|
Security and quality
6
| https://github.com/modelcontextprotocol/python-sdk/security |
|
Insights
| https://github.com/modelcontextprotocol/python-sdk/pulse |
|
Code
| https://github.com/modelcontextprotocol/python-sdk |
|
Issues
| https://github.com/modelcontextprotocol/python-sdk/issues |
|
Pull requests
| https://github.com/modelcontextprotocol/python-sdk/pulls |
|
Actions
| https://github.com/modelcontextprotocol/python-sdk/actions |
|
Projects
| https://github.com/modelcontextprotocol/python-sdk/projects |
|
Models
| https://github.com/modelcontextprotocol/python-sdk/models |
|
Security and quality
| https://github.com/modelcontextprotocol/python-sdk/security |
|
Insights
| https://github.com/modelcontextprotocol/python-sdk/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose |
| maxisbey | https://github.com/maxisbey |
| maxisbey/v1x-interaction-backport | https://github.com/modelcontextprotocol/python-sdk/tree/maxisbey/v1x-interaction-backport |
| maxisbey/v1x-tests-deflake | https://github.com/modelcontextprotocol/python-sdk/tree/maxisbey/v1x-tests-deflake |
|
Conversation
0
| https://github.com/modelcontextprotocol/python-sdk/pull/2837 |
|
Commits
17
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits |
|
Checks
19
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/checks |
|
Files changed
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2837/files |
|
[v1.x] Backport transport test deflakes from main (tests-only)
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#top |
|
Show all changes
17 commits
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files |
|
b880950
Deflake the session-level timeout test with trio's virtual clock (#2788)
maxisbey Jun 5, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/b880950a26ca758a2a9830a27ec63d8935a58ea6 |
|
ea6a479
tests: avoid abandoned-async-generator warnings under the trio backend
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/ea6a479e41b8030728c5960e96688bc8d2552155 |
|
8d73896
tests: re-export StreamingASGITransport as the sanctioned bridge impo…
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/8d7389602750dbfcb4a3cd8bc16c7b6b54598c4a |
|
6a6e7b7
Run transport security tests in process instead of over sockets (#2764)
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/6a6e7b7276bde130c3bf7825890e1221a0e08075 |
|
fd71a10
Filter known anyio stream teardown warnings in streamable HTTP securi…
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/fd71a106b16a90eff78ed3471ce2b1c8936dd9ac |
|
92c4fe0
Run SSE and Unicode transport tests in process instead of over socket…
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/92c4fe063859d2cbd75e96fe79fa5bd9e66ae171 |
|
a94f3d5
Guard in-process HTTP tests against sse-starlette's global exit event
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/a94f3d5827745c85c37fded476631e4e6a18d93d |
|
43cf9ec
Run StreamableHTTP transport tests in process instead of over sockets…
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/43cf9ec76242670fae1bb23cb1999540467ed3f1 |
|
b80a9bd
Force per-test GC so leaked-stream warnings stay inside the scoped fi…
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/b80a9bd7c60517d240c133b6e0190ca7ad22567e |
|
9dc96d6
Guard streamable-HTTP test modules against sse-starlette's module-glo…
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/9dc96d66b50b2ce715873bd985ec9f173ff36cba |
|
600c96e
Extend the per-test GC fixture to the SSE and Unicode HTTP test modules
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/600c96e3f983362cb06ae45ea8e37baa6a543789 |
|
39938a2
Harden the streaming ASGI bridge against trailing responses
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/39938a2f8a784551221f807cef46caf6e29d60c0 |
|
b732867
Verify SSE request-context isolation inside each connection block
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/b732867ccfabb20fd870a173831934930498c268 |
|
3e53636
Exclude the connection loop's exit arc from branch coverage
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/3e53636d7608b3e685dd3a5798a3393031c94436 |
|
16ceeea
Exclude post-teardown header checks from 3.11 coverage measurement
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/16ceeea3a98a104634e2e22c7afaf74ff312727d |
|
e155e1b
Deflake child process cleanup tests with polling instead of fixed sleeps
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/e155e1bb9e304f6b77078e5851884e1ca8be6cda |
|
4a17006
Harden stop detection and avoid redundant tree termination in cleanup…
maxisbey Jun 11, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/commits/4a17006005d42aa1eb5bccb345bd92d0bee49f76 |
|
Clear filters
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2837/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2837/files |
|
test_http_unicode.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-1abfe619fb6ecef0087c7e77c14530625aee85ec1dc1db958de2f341769c21c9 |
|
test_stdio.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-49f66b09e4d89b29b440c955c429fe948dbcc3bbb08fffb504cf40be24382352 |
|
conftest.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-b61a049ecf6fc6396e71d1810e6a19663ca307f1e8cfbd1783ae95496d327863 |
|
test_timeouts.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-72f06b25a7e212f804121ef810f403578c4acd67b76b86ccda04618012a9930d |
|
test_coverage.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-b60708448fb1fbd8bdc0fa50e9ae954833dcfdc17e67bb0ff9d544492b554c64 |
|
__init__.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-96c09033337ef37f4b1802f9ecdbc377acec2a2f130d32eca79250281aa5f492 |
|
_bridge.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-6776bddee945aaa483da4fdb6fb6e967660d3eecd4dedd0dfb99e236baab1e65 |
|
test_bridge.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-973bd36347e6d5afc67eb34b8a26000f5387e40d5200222400ed01920e68495c |
|
test_sse_security.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-c4352f0bf263a51087a1f9dbd97e778a2fa4bf3fc0eced12e4bb84af262b7d8e |
|
test_streamable_http_manager.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-ee0bac8ccf39135f1347002539cc4af38ee7e89b85595884e94fb4ab304a111d |
|
test_streamable_http_security.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-99641f6cbe257be62af18938eeaacc6b089a42a859dac58486fe17506a9de558 |
|
test_sse.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-a2934f5f6ec610dff6774352c41b8c697b539614667643d69fd67f6fc6d7765e |
|
test_streamable_http.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-57d1f3c64af36960aa61b1d77387fb6201b90fbc2f3d606bf2761315ce618cc5 |
| tests/client/test_http_unicode.py | https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-1abfe619fb6ecef0087c7e77c14530625aee85ec1dc1db958de2f341769c21c9 |
|
View file
| https://github.com/modelcontextprotocol/python-sdk/blob/4a17006005d42aa1eb5bccb345bd92d0bee49f76/tests/client/test_http_unicode.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-1abfe619fb6ecef0087c7e77c14530625aee85ec1dc1db958de2f341769c21c9 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-1abfe619fb6ecef0087c7e77c14530625aee85ec1dc1db958de2f341769c21c9 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-1abfe619fb6ecef0087c7e77c14530625aee85ec1dc1db958de2f341769c21c9 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/2837/files#diff-1abfe619fb6ecef0087c7e77c14530625aee85ec1dc1db958de2f341769c21c9 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2837/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2837/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |