Title: tests/client/test_client.py: 14 failures on Windows — AttributeError: '...Result' object has no attribute '_meta' · Issue #3544 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: tests/client/test_client.py: 14 failures on Windows — AttributeError: '...Result' object has no attribute '_meta' · Issue #3544 · modelcontextprotocol/python-sdk
X Title: tests/client/test_client.py: 14 failures on Windows — AttributeError: '...Result' object has no attribute '_meta' · Issue #3544 · modelcontextprotocol/python-sdk
Description: Initial Checks I confirm that I'm using the newest release of my line (the latest 2.x, or the latest 1.x if I'm still on v1) I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before openi...
Open Graph Description: Initial Checks I confirm that I'm using the newest release of my line (the latest 2.x, or the latest 1.x if I'm still on v1) I confirm that I searched for my issue in https://github.com/modelcontex...
X Description: Initial Checks I confirm that I'm using the newest release of my line (the latest 2.x, or the latest 1.x if I'm still on v1) I confirm that I searched for my issue in https://github.com/mod...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/3544
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tests/client/test_client.py: 14 failures on Windows — AttributeError: '...Result' object has no attribute '_meta'","articleBody":"### Initial Checks\n\n- [x] I confirm that I'm using the newest release of my line (the latest 2.x, or the latest 1.x if I'm still on v1)\n- [x] I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue\n\n### Release line\n\n2.x (current stable)\n\n### Description\n\nOn a clean checkout of main, tests/client/test_client.py fails with 14 errors of the form AttributeError: 'CallToolResult' object has no attribute '_meta'. Did you mean: 'meta'?\n\nThe snapshots pass the wire name (snapshot(CallToolResult(_meta={...}))), but inline_snapshot's generic_call_adapter.argument() does a plain getattr(value, '_meta') and the pydantic model exposes the field as meta. The data is there — the repr shows meta={'io.modelcontextprotocol/serverInfo': ...}.\n\nI'd expect the test suite to pass on a fresh clone with locked dependencies.\n\nRuled out: unlocked dependency resolution (reproduced with --frozen and --no-sync), Python version (3.12.14 and 3.14.2 both fail), and a non-ASCII checkout path (reproduces under a plain ASCII path too).\n\nI only have Windows to test on, so I don't know whether this reproduces on Linux or macOS. If CI is green, the difference is presumably platform-specific and I'm happy to run whatever would help narrow it down.\n\n┃ File ┃ Function ┃ Function Line ┃ Error Line ┃ Error ┃\n┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩\n│ tests\\client\\test_client.py │ test_client_with_simple_server │ 133 │ │ │\n│ tests\\client\\test_client.py │ test_client_list_tools │ 151 │ │ │\n│ tests\\client\\test_client.py │ test_client_call_tool │ 179 │ │ │\n│ tests\\client\\test_client.py │ test_read_resource │ 191 │ │ │\n│ tests\\client\\test_client.py │ test_get_prompt │ 272 │ │ │\n│ tests\\client\\test_client.py │ test_client_list_resources_wi… │ 339 │ │ │\n│ tests\\client\\test_client.py │ test_client_list_resource_tem… │ 358 │ │ │\n│ tests\\client\\test_client.py │ test_list_prompts │ 369 │ │ │\n│ tests\\client\\test_client.py │ test_complete_with_prompt_ref… │ 387 │ │ │\n│ tests\\client\\test_client.py │ test_call_tool_auto_loop_disp… │ 768 │ 797 │ AttributeError │\n│ tests\\client\\test_client.py │ test_call_tool_auto_loop_disp… │ 810 │ 846 │ AttributeError │\n│ tests\\client\\test_client.py │ test_call_tool_auto_loop_disp… │ 857 │ 881 │ AttributeError │\n│ tests\\client\\test_client.py │ test_get_prompt_auto_loop_res… │ 945 │ 968 │ AttributeError │\n│ tests\\client\\test_client.py │ test_read_resource_auto_loop_… │ 976 │ 999 │ AttributeError\n\n\n\n### Example Code\n\n```Python\n┃ File ┃ Function ┃ Function Line ┃ Error Line ┃ Error ┃\n┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩\n│ tests\\client\\test_client.py │ test_client_with_simple_server │ 133 │ │ │\n│ tests\\client\\test_client.py │ test_client_list_tools │ 151 │ │ │\n│ tests\\client\\test_client.py │ test_client_call_tool │ 179 │ │ │\n│ tests\\client\\test_client.py │ test_read_resource │ 191 │ │ │\n│ tests\\client\\test_client.py │ test_get_prompt │ 272 │ │ │\n│ tests\\client\\test_client.py │ test_client_list_resources_wi… │ 339 │ │ │\n│ tests\\client\\test_client.py │ test_client_list_resource_tem… │ 358 │ │ │\n│ tests\\client\\test_client.py │ test_list_prompts │ 369 │ │ │\n│ tests\\client\\test_client.py │ test_complete_with_prompt_ref… │ 387 │ │ │\n│ tests\\client\\test_client.py │ test_call_tool_auto_loop_disp… │ 768 │ 797 │ AttributeError │\n│ tests\\client\\test_client.py │ test_call_tool_auto_loop_disp… │ 810 │ 846 │ AttributeError │\n│ tests\\client\\test_client.py │ test_call_tool_auto_loop_disp… │ 857 │ 881 │ AttributeError │\n│ tests\\client\\test_client.py │ test_get_prompt_auto_loop_res… │ 945 │ 968 │ AttributeError │\n│ tests\\client\\test_client.py │ test_read_resource_auto_loop_… │ 976 │ 999 │ AttributeError\n\ngit clone https://github.com/modelcontextprotocol/python-sdk.git\ncd python-sdk\nuv sync --frozen --all-extras --dev\nuv run --no-sync pytest tests/client/test_client.py -q\n\n# → 14 failed, 33 passed\n```\n\n### Python & MCP Python SDK\n\n```Text\nPython 3.12.14 (also reproduced on 3.14.2)\nmcp 2.2.1.dev1+6affe5c0 (source checkout of main, commit 6affe5c0)\ninline_snapshot 0.28.0, pydantic 2.12.5 (both from uv.lock)\nuv 0.12.16\nWindows 11, PowerShell\n```","author":{"url":"https://github.com/Muhammad8000","@type":"Person","name":"Muhammad8000"},"datePublished":"2026-09-18T13:46:18Z","url":"https://github.com/modelcontextprotocol/python-sdk/issues/3544"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:158cefda-4e0d-e717-d949-d536ea6555ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 83F4:FD77C:2A428DA:375314C:6B055D12 |
| html-safe-nonce | c6175ed9916cc028b29297af619d771e8c24e55f44b763d387d6c90069c55479 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0Y0OkZENzdDOjJBNDI4REE6Mzc1MzE0Qzo2QjA1NUQxMiIsInZpc2l0b3JfaWQiOiI1MzczNjYxNjc0MzU0MzM0OTk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c357f9672a0c53de60534327f38ecb541dc4fc4ff3862200f15fd582bc24c764 |
| hovercard-subject-tag | issue:5500311249 |
| 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/3544/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f63fdaa66491b44fff3e13a3e72f3a7aee9c215f1ad35adf2d93ba8e12cb9ef8/modelcontextprotocol/python-sdk/issues/3544 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f63fdaa66491b44fff3e13a3e72f3a7aee9c215f1ad35adf2d93ba8e12cb9ef8/modelcontextprotocol/python-sdk/issues/3544 |
| og:image:alt | Initial Checks I confirm that I'm using the newest release of my line (the latest 2.x, or the latest 1.x if I'm still on v1) I confirm that I searched for my issue in https://github.com/modelcontex... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Muhammad8000 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8a6760da3cce5e2d079d07e3b62df71194316c4478db1a5e38050f44fce72c72 |
| 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 | 8327739ac0648b9c3c722b5f401f7338553936b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width