def teardown_method(self, method):
    'Make sure the executor can be recovered after the tests'
    executor = get_reusable_executor(max_workers=2)
    assert (executor.submit(math.sqrt, 1).result() == 1)
    _check_subprocesses_number(executor, expected_max_process_number=2)
Make sure the executor can be recovered after the tests
def teardown_method(self, method):
    
    executor = get_reusable_executor(max_workers=2)
    assert (executor.submit(math.sqrt, 1).result() == 1)
    _check_subprocesses_number(executor, expected_max_process_number=2)