bpo-30121: Fix debug assert in subprocess on Windows by segevfiner · Pull Request #1224 · python/cpython (original) (raw)
@Haypo Plenty of tests already trigger this. And any simple test that just tries to run a non-existent executable with io redirection will also trigger this. But libregrtest does CrtSetReportMode
which means the assert will be silent when ran using it, and the test will simply pass. If you try and run python -m unittest -v test.test_subprocess
in a debug build, you can see the asserts.
I did encounter one test in test_subprocess
that will assert when ran directly so I suppressed that, and you should be able to run test_subprocess
and see that it doesn't assert in this branch.
I don't know how to write a test that checks specifically that there isn't a debug assertion under libregrtest
.