try fixing test runner output when sys.stderr is replaced