Emitted when a node calls the pytest_logwarning hook.

def worker_warning_captured(self, warning_message, when, item):
        """Emitted when a node calls the pytest_logwarning hook."""
        kwargs = dict(warning_message=warning_message, when=when, item=item)
        self.config.hook.pytest_warning_captured.call_historic(kwargs=kwargs)