The tests are not reliable with the GIL disabled. In theory, they can
fail with the GIL enabled too, but the failures are much more likely
with the GIL disabled.
for _ in range(job_count):
sem.release()
+ @unittest.skipIf(support.Py_GIL_DISABLED, "gh-117344: test is flaky without the GIL")
def test_idle_process_reuse_one(self):
executor = self.executor
assert executor._max_workers >= 4
sem.release()
executor.shutdown(wait=True)
+ @unittest.skipIf(support.Py_GIL_DISABLED, "gh-117344: test is flaky without the GIL")
def test_idle_thread_reuse(self):
executor = self.executor_type()
executor.submit(mul, 21, 2).result()