pallets / werkzeug

The comprehensive WSGI web application library.
https://werkzeug.palletsprojects.com
BSD 3-Clause "New" or "Revised" License
6.63k stars 1.73k forks source link

feat: remove xprocess from the tests #2908

Open sp6370 opened 3 months ago

sp6370 commented 3 months ago

Fix: #2906

davidism commented 3 months ago

Found that passing -u to python will allow using p.stdout.readline() without waiting for the whole process to finish. I also tried passing bufsize=0 to Popen but that didn't work.

subprocess.Popen([sys.executable, "-u", "run.py", ...], ...)