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: windows compat (#8718)

Dylan Madisetti754d646be269
diff --git a/tests/_session/managers/test_ipc.py b/tests/_session/managers/test_ipc.py
index e937accf85..734a05fe6a 100644
--- a/tests/_session/managers/test_ipc.py
+++ b/tests/_session/managers/test_ipc.py
@@ -3,6 +3,7 @@ from __future__ import annotations
import os
import time
+from pathlib import Path
import pytest
@@ -176,7 +177,9 @@ class TestConstructKernelEnv:
writable=True,
)
# VIRTUAL_ENV points to the venv root (two parents above python)
- assert env["VIRTUAL_ENV"] == "/tmp/sandbox/.venv"
+ assert (
+ Path(env["VIRTUAL_ENV"]) == Path(self.SANDBOX_PYTHON).parent.parent
+ )
# UV_PROJECT_ENVIRONMENT must be removed so the kernel doesn't
# inherit the outer uv project.
assert "UV_PROJECT_ENVIRONMENT" not in env