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: add sleep to recursion guard for windows (#7836)

Dylan Madisetti258a5c220f05
diff --git a/tests/_runtime/test_pytest_runtime.py b/tests/_runtime/test_pytest_runtime.py
index 88e15481c1..d9562d91a1 100644
--- a/tests/_runtime/test_pytest_runtime.py
+++ b/tests/_runtime/test_pytest_runtime.py
@@ -1,3 +1,4 @@
+import asyncio
import os
from pathlib import Path
@@ -47,6 +48,8 @@ def test_smoke_test():
previous = os.environ.get("PYTEST_CURRENT_TEST", "")
os.environ["PYTEST_CURRENT_TEST"] = ""
del os.environ["PYTEST_CURRENT_TEST"]
+ # Give time for env changes to sync (helps with race conditions on Windows)
+ asyncio.run(asyncio.sleep(0.1))
# sanity check for run
total = 0