Move test.test_support.catch_warning() to the warnings module, rename it