Use the hook environment’s Python interpreter and select the supported process, terminal, and locking APIs at their platform boundaries. Keep all existing hook checks enabled and fix the tracked SVG EOF that fails a clean all-files run.
test_cancel_reaps_render_process patches renderer.subprocess.Popen,
which is subprocess.Popen itself, to start a 60 s sleeper in place of
Manim. On Windows the cancel path's kill_process_tree runs taskkill
through subprocess.run, so taskkill became another sleeper, hit its
10 s timeout, and the test failed with TimeoutError after ~11 s. The
stub now replaces only the "-m manim" command.
test_cleanup_rechecks_group_after_permission_race simulates the POSIX
branch on every OS, but Windows has no signal.SIGKILL; give it one for
the test. No assertion changes.