Issue #2394327 by jhedstrom: run-tests.sh throwing stream wrapper warnings