@pytest.fixture(autouse=True)
def setup_method(self):
    global _test_event
    assert (_test_event is not None)
    try:
        self.executor = self.executor_type(max_workers=self.worker_count, context=self.context, initializer=initializer_event, initargs=(_test_event,))
    except NotImplementedError as e:
        self.skipTest(str(e))
    _check_executor_started(self.executor)
    _check_subprocesses_number(self.executor, self.worker_count)
@pytest.fixture(autouse=True)
def setup_method(self):
    global _test_event
    assert (_test_event is not None)
    try:
        self.executor = self.executor_type(max_workers=self.worker_count, context=self.context, initializer=initializer_event, initargs=(_test_event,))
    except NotImplementedError as e:
        self.skipTest(str(e))
    _check_executor_started(self.executor)
    _check_subprocesses_number(self.executor, self.worker_count)