Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

bench test: kill the lease holder's whole process tree on Windows (a venv python.exe is a launcher)

Niko12219587a7a1e00f
diff --git a/tests/terminal/test_bench.py b/tests/terminal/test_bench.py
index 962d85d0b..e066ea86b 100644
--- a/tests/terminal/test_bench.py
+++ b/tests/terminal/test_bench.py
@@ -293,7 +293,11 @@ class BenchTests(unittest.TestCase):
"timed out"))
with mock.patch.dict(os.environ, {"STRATA_PROFILE_DIR": environment["STRATA_PROFILE_DIR"]}):
self.assertEqual(benchmarking.benchmark_activity("local", output), "active")
- process.kill()
+ if os.name == "nt":
+ # a venv's python.exe is a launcher that runs the real interpreter as its child
+ subprocess.run(["taskkill", "/F", "/T", "/PID", str(process.pid)], capture_output=True)
+ else:
+ process.kill()
process.wait(timeout=5)
self.assertEqual(benchmarking.benchmark_activity("local", output), "ended")
finally: