Title: Pass a list to parametrize in test_docs_examples (pytest 9.1.0 compat) by maxisbey · Pull Request #2890 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Pass a list to parametrize in test_docs_examples (pytest 9.1.0 compat) by maxisbey · Pull Request #2890 · modelcontextprotocol/python-sdk
X Title: Pass a list to parametrize in test_docs_examples (pytest 9.1.0 compat) by maxisbey · Pull Request #2890 · modelcontextprotocol/python-sdk
Description: pytest 9.1.0 deprecates passing a non-Collection iterable (e.g. a generator) to pytest.mark.parametrize, raising PytestRemovedIn10Warning. With filterwarnings = ["error"] this fails collection. pytest_examples.find_examples() returns a generator; materialize it as a list. Same fix as #2889 on v1.x. main's CI matrix uses locked resolution (pytest 8.4.2) so this is not currently failing there, but it future-proofs against the next pytest bump in uv.lock. Verified locally that tests/test_examples.py collects clean and all 45 tests pass under pytest 9.1.0 with -W error. The uv.lock bump to 9.1.0 is deliberately left for a separate PR. AI Disclaimer
Open Graph Description: pytest 9.1.0 deprecates passing a non-Collection iterable (e.g. a generator) to pytest.mark.parametrize, raising PytestRemovedIn10Warning. With filterwarnings = ["error"] this fails colle...
X Description: pytest 9.1.0 deprecates passing a non-Collection iterable (e.g. a generator) to pytest.mark.parametrize, raising PytestRemovedIn10Warning. With filterwarnings = ["error"] this fai...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2890
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:12a8c3fa-c229-52bc-4da8-2b968f6671c1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BDE4:334EE2:11FC0E:188E95:6A5A591A |
| html-safe-nonce | 741ddfb40d846aff2a7fbc89973937f3d53eff6fe8479108effa36343075c033 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREU0OjMzNEVFMjoxMUZDMEU6MTg4RTk1OjZBNUE1OTFBIiwidmlzaXRvcl9pZCI6IjcwNDczMzY5MjEyMjkwNTYyODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a096270fd753a99a362058698dfbaa86b6524b0cc1f2b6af067faf5bdddbe26c |
| hovercard-subject-tag | pull_request:3879149863 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2890/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 | pytest 9.1.0 deprecates passing a non-Collection iterable (e.g. a generator) to pytest.mark.parametrize, raising PytestRemovedIn10Warning. With filterwarnings = ["error"] this fails colle... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 05b9ddf6a47d2dbe13944873a99f5fb4b83ba4871f9cb8a8e256793a63ca9687 |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8d29d1bd03dda2dd14b3f80b8bc27e1111f43bd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width