Use `tests.helpers.catch_warnings` instead of `warnings.catch_warnings`