Initially this is only meant to be a small update for `test_io.py`. But it turns out that `test.support` need a lot of cleanup especially for `test.support.warnings_helper`.