test(hooks): update comment to refer to #2253

This commit is contained in:
himanshupatro-334
2026-07-28 09:37:39 +01:00
committed by safishamsi
parent 3bac3df666
commit 952b477a3f
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -4,4 +4,3 @@
worked/**/*.html linguist-vendored=true
graphify-out/**/*.html linguist-vendored=true
*.html linguist-detectable=false
graphify-out/graph.json merge=graphify
+1 -1
View File
@@ -248,7 +248,7 @@ def test_hooks_do_not_use_nohup(name, script):
@pytest.mark.parametrize("name,script", _HOOK_SCRIPTS)
def test_hooks_use_cross_platform_detach(name, script):
"""The replacement detaches via Python: start_new_session on POSIX and
CREATE_NO_WINDOW|CREATE_NEW_PROCESS_GROUP on Windows (#1161)."""
CREATE_NO_WINDOW|CREATE_NEW_PROCESS_GROUP on Windows (#1161 / #2253)."""
assert "subprocess.Popen" in script
assert "start_new_session=True" in script, f"{name} missing POSIX detach"
assert "0x08000000" in script, f"{name} missing Windows CREATE_NO_WINDOW flag"