π The fast, Pythonic way to build MCP servers and clients.
Update test_streamable_http.py
Jeremiah Lowin987dd85826b6
diff --git a/tests/client/test_streamable_http.py b/tests/client/test_streamable_http.pyindex 3fec43f82..efcb79f16 100644--- a/tests/client/test_streamable_http.py+++ b/tests/client/test_streamable_http.py@@ -217,41 +217,3 @@ class TestTimeout:) as client:with pytest.raises(McpError):await client.call_tool("sleep", {"seconds": 0.2}, timeout=0.1)---async def test_fastmcp_run_with_streamable_http_alias():- """Test that FastMCP.run() works with 'streamable-http' transport alias."""- server = fastmcp_server()-- # This should work without error - testing that the alias is recognized- import threading- import time-- def run_server():- try:- server.run(transport="streamable-http", port=0, log_level="error")- except Exception:- # Expected to fail when port is 0, but we're just testing the transport parsing- pass-- # Run in a separate thread briefly to test transport argument parsing- thread = threading.Thread(target=run_server, daemon=True)- thread.start()- time.sleep(0.1) # Give it a moment to start and parse arguments- # Thread will exit naturally when the function completes---async def test_fastmcp_run_async_with_streamable_http_alias():- """Test that FastMCP.run_async() works with 'streamable-http' transport alias."""- server = fastmcp_server()-- # Test that run_async accepts the streamable-http alias- try:- # Use a timeout to prevent hanging- await asyncio.wait_for(- server.run_async(transport="streamable-http", port=0, log_level="error"),- timeout=0.1,- )- except (asyncio.TimeoutError, Exception):- # Expected to fail/timeout, but we're testing that the transport is accepted- pass