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

This commit is contained in:
himanshupatro-334 authored and safishamsi committed 2026-07-28 09:37:39 +01:00
1 parent 3bac3df666
commit 952b477a3f
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -4,4 +4,3 @@
worked/**/*.html linguist-vendored=true worked/**/*.html linguist-vendored=true
graphify-out/**/*.html linguist-vendored=true graphify-out/**/*.html linguist-vendored=true
*.html linguist-detectable=false *.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) @pytest.mark.parametrize("name,script", _HOOK_SCRIPTS)
def test_hooks_use_cross_platform_detach(name, script): def test_hooks_use_cross_platform_detach(name, script):
"""The replacement detaches via Python: start_new_session on POSIX and """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 "subprocess.Popen" in script
assert "start_new_session=True" in script, f"{name} missing POSIX detach" assert "start_new_session=True" in script, f"{name} missing POSIX detach"
assert "0x08000000" in script, f"{name} missing Windows CREATE_NO_WINDOW flag" assert "0x08000000" in script, f"{name} missing Windows CREATE_NO_WINDOW flag"