Skip to content

Don't rewrite it in Rust. Rewrite the 5% that's slow: profile your app, port the hot functions with your coding agent, prove they behave the same. Python, JS/TS, Ruby, Java, Kotlin, Go, PHP, C/C++, C#, R.

python: give queued-task termination test 1.0s hold margin

RRFZ767c945a0318
diff --git a/src/python.rs b/src/python.rs
index 4873d51..6550cd1 100644
--- a/src/python.rs
+++ b/src/python.rs
@@ -1296,7 +1296,7 @@ mod tests {
def sq(x: int) -> int:\n return x * x\n\n\
def hold(started_path: str) -> None:\n\
\x20 pathlib.Path(started_path).write_text('1', encoding='utf-8')\n\
- \x20 time.sleep(0.3)\n\n\
+ \x20 time.sleep(1.0)\n\n\
def side_effect(marker_path: str) -> None:\n\
\x20 pathlib.Path(marker_path).write_text('ran', encoding='utf-8')\n";
let app = "import pathlib, sys, time\n\