Context manager to check that no ResourceWarning was raised. You must remove the object which may emit ResourceWarning before the end of the context manager.
test.support.warnings_helper/check_no_resource_warning
check_no_resource_warning