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.

tests: xfail python314 for pool (#7254)

Dylan Madisettidf841e202c71
diff --git a/marimo/_smoke_tests/compat/python314.py b/marimo/_smoke_tests/compat/python314.py
new file mode 100644
index 0000000000..0bdfcc3afd
--- /dev/null
+++ b/marimo/_smoke_tests/compat/python314.py
@@ -0,0 +1,26 @@
+import marimo
+
+__generated_with = "0.18.0"
+app = marimo.App(width="medium")
+
+
+def _():
+ import asyncio
+ import concurrent.futures
+
+ def blocking():
+ return "done"
+ return asyncio, blocking, concurrent
+
+
+async def _(asyncio, blocking, concurrent):
+ loop = asyncio.get_running_loop()
+ with concurrent.futures.ProcessPoolExecutor() as pool:
+ res = await loop.run_in_executor(pool, blocking)
+ return
+
+
+if __name__ == "__main__":
+ app.run()
diff --git a/tests/_runtime/test_runtime.py b/tests/_runtime/test_runtime.py
index 5f3341f563..20180c19d4 100644
--- a/tests/_runtime/test_runtime.py
+++ b/tests/_runtime/test_runtime.py
@@ -2931,10 +2931,13 @@ class TestAsyncIO:
@staticmethod
@pytest.mark.xfail(
- condition=sys.platform == "win32" or sys.platform == "darwin",
+ condition=sys.platform == "win32"
+ or sys.platform == "darwin"
+ or sys.version_info >= (3, 14),
reason=(
"Bug in interaction with multiprocessing on Windows, macOS; "
- "doesn't work in Jupyter either."
+ "doesn't work in Jupyter either. Seems to have issue in 3.14 "
+ "as well (pool doesn't copy vars from patched module correctly)."
),
)
async def test_run_in_processpool_executor(
@@ -2965,6 +2968,8 @@ class TestAsyncIO:
]
)
assert not k.errors
+ assert not k.stderr.messages, k.stderr
+ assert not k.stdout.messages, k.stdout
assert k.globals["res"] == "done"