Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: shutdown before websocket disconnect in test (#7775)

Ravin Lathigraa9f169fbe283
diff --git a/tests/_server/api/endpoints/test_home.py b/tests/_server/api/endpoints/test_home.py
index af79171354..f882751e3c 100644
--- a/tests/_server/api/endpoints/test_home.py
+++ b/tests/_server/api/endpoints/test_home.py
@@ -275,6 +275,11 @@ def test_shutdown_session_returns_relative_paths(client: TestClient) -> None:
# Note: session is already shut down, so we don't restore filename
+ sys.platform == "win32",
+ reason="Flaky on Windows - websocket cleanup may hang due to background threads. See #7774",
+ strict=False,
+)
def test_running_notebooks_handles_files_outside_directory(
client: TestClient,
) -> None: