python-sdk icon indicating copy to clipboard operation
python-sdk copied to clipboard

Pytests give error on first run

Open P116gif opened this issue 8 months ago • 1 comments

Describe the bug Running the tests when you first clone the repo doesn't pass all the tests

To Reproduce Steps to reproduce the behavior:

  1. Fork the repo
  2. Clone it to your device
  3. Open terminal, install required libraries
  4. Run the pytests

Expected behavior All tests should pass right? Otherwise when someone changes the code and runs the tests, how are they supposed to know if they caused the error or someone else did?

Screenshots

Image

Desktop (please complete the following information):

  • OS: Windows 11
  • MCP/python-sdk https://github.com/modelcontextprotocol/python-sdk/commit/05b7156ea8a34d8476a7cfbef5f754e22ab6c697

Additional context I am a bit new to contributions, so if there's anything I should change feel free to let me know plz

P116gif avatar May 30 '25 05:05 P116gif

I can confirm that few tests are failing while running Pytest.

Image

Here are the environment details: platform win32 -- Python 3.13.0, pytest-8.3.4, pluggy-1.5.0 configfile: pyproject.toml plugins: anyio-4.5.0, inline-snapshot-0.23.0, examples-0.0.14, flakefinder-1.1.0, pretty-1.2.0, xdist-3.6.1

TijoT avatar May 30 '25 21:05 TijoT

This was fixed.

Kludex avatar Aug 12 '25 11:08 Kludex