def test_executor_error(self, scheduler, jobstore, executor, caplog):
        caplog.set_level(logging.ERROR)
        executor.submit_job = MagicMock(side_effect=Exception('test message'))

        assert scheduler._process_jobs() is None
        assert len(caplog.records) == 1
        assert 'test message' in caplog.records[0].exc_text
        assert 'Error submitting job "job 999" to executor "default"' in caplog.records[0].message
Sends data to the remote server. This method is called
dataset/ETHPy150Open agronholm/apscheduler/tests/test_schedulers.py/TestProcessJobs.test_executor_error--crossover with--dataset/ETHPy150Open gabrielfalcao/HTTPretty/httpretty/core.py/fakesock.socket.real_sendall