TST: prevent stderr from leaking to console in util.testing
Merge pull request #5644 from y-p/PR_popen_noise_on_error

TST: prevent stderr from leaking to console in util.testing