bito-code-review[bot] commented on code in PR #38562:
URL: https://github.com/apache/superset/pull/38562#discussion_r2920143157


##########
tests/unit_tests/mcp_service/test_mcp_tool_registration.py:
##########
@@ -17,25 +17,32 @@
 
 """Test MCP app imports and tool/prompt registration."""
 
+import asyncio
+
+
+def _run(coro):
+    """Run an async coroutine synchronously."""
+    return asyncio.get_event_loop().run_until_complete(coro)

Review Comment:
   <!-- Bito Reply -->
   Yes, the suggestion is valid — it updates the code to use `asyncio.run()`, 
the modern and recommended way to run async coroutines in Python 3.7+, 
improving compatibility and avoiding event loop issues.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to