Warning · Test quality
The fixture pipes both streams, so its Windows assertions still pass if `may_detach` checks only one stream or replaces AND with OR.
Impact
Discovery could launch with one Windows output stream redirected without failing the test.
Recommended action
Test both mixed terminal states and assert that neither permits discovery.