Release v0.51.301 — stage-3710 (hide test-helper console windows on Windows #3710) - #3753
Conversation
#3706) @rodboev. Long-lived test helper subprocesses (test server, browser-smoke, TLS helper, ctl helpers) now spawn with CREATE_NO_WINDOW on Windows so a local pytest run doesn't pop focus-stealing console windows. sys.platform=='win32' guarded → no-op on macOS/Linux (expands to **{}). Test-only, no production code, no user impact. + CHANGELOG v0.51.301.
|
| Filename | Overview |
|---|---|
| tests/browser_smoke.py | Adds CREATE_NO_WINDOW guard to the browser-smoke server Popen call; pattern is correct and platform-gated. |
| tests/conftest.py | Adds CREATE_NO_WINDOW guard to the main test-server Popen in test_server fixture; no logic change. |
| tests/test_ctl_script.py | Adds CREATE_NO_WINDOW to two Popen calls (start_fake_launchd_process and the sleeper subprocess); both correctly guarded. |
| tests/test_tls_support.py | Adds missing import sys, fixes alphabetical import ordering, and adds CREATE_NO_WINDOW guard to _start_server. |
| CHANGELOG.md | Adds v0.51.301 release entry documenting the Windows console-window fix; entry is accurate and well-formed. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[pytest run on Windows] --> B{spawn subprocess}
B --> C["sys.platform == 'win32'?"]
C -- Yes --> D["creationflags=CREATE_NO_WINDOW\n(no console window)"]
C -- No --> E["**{} — no-op\n(macOS / Linux unchanged)"]
D --> F[Popen called]
E --> F
F --> G[test_server / browser_smoke /\nTLS helper / ctl helpers]
Reviews (1): Last reviewed commit: "test(windows): hide test-helper console ..." | Re-trigger Greptile
…indows nesquena#3710) (nesquena#3753) * test(windows): hide test helper console windows (nesquena#3706) * test(windows): use CREATE_NO_WINDOW constant (nesquena#3706) * test(windows): hide test-helper console windows on Windows (nesquena#3710 fixes nesquena#3706) @rodboev. Long-lived test helper subprocesses (test server, browser-smoke, TLS helper, ctl helpers) now spawn with CREATE_NO_WINDOW on Windows so a local pytest run doesn't pop focus-stealing console windows. sys.platform=='win32' guarded → no-op on macOS/Linux (expands to **{}). Test-only, no production code, no user impact. + CHANGELOG v0.51.301. --------- Co-authored-by: Rod Boev <rod.boev@gmail.com> Co-authored-by: nesquena-hermes <[email protected]>
Release stage for v0.51.301 — test-only, Windows dev-experience.
#3710 → fixes #3706 — hide test-helper console windows on Windows
@rodboev, +13/−3, 4 test files only. Windows local
pytestruns spawn long-lived helper subprocesses (test server, browser-smoke, TLS helper, ctl helpers) viasubprocess.Popen; each unflagged child opened a visible console window. Each spawn now addsCREATE_NO_WINDOWon Windows.All changes are
**({"creationflags": subprocess.CREATE_NO_WINDOW} if sys.platform == "win32" else {})— on macOS/Linux they expand to**{}(literal no-op). Zero production code, zero non-Windows behavior change.Gate (all green)
(#3710 fixes #3706)