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(tests): loosen dataframe preview memory threshold for macOS CI (#9934)

Shahmir Varqha1ae84e11205e
diff --git a/tests/_messaging/test_variables.py b/tests/_messaging/test_variables.py
index b28946ee58..88c975b700 100644
--- a/tests/_messaging/test_variables.py
+++ b/tests/_messaging/test_variables.py
@@ -228,7 +228,9 @@ def test_get_variable_preview_dataframe(df: Any) -> None:
mem_diff_mb = (mem_after - mem_before) / (1024 * 1024)
- assert mem_diff_mb < 10, (
+ # Threshold is well under copying the 1M-row frame but loose enough to
+ # absorb allocator noise on macOS arm64 runners.
+ assert mem_diff_mb < 15, (
f"Memory increased by {mem_diff_mb}MB during preview"
)
assert "2 columns" in preview