mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-117344: Skip flaky tests in free-threaded build (#117355)
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.
This commit is contained in:
parent
f05fb2e65c
commit
397d88db5e
2 changed files with 2 additions and 0 deletions
|
@ -116,6 +116,7 @@ class ProcessPoolExecutorTest(ExecutorTest):
|
|||
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
|
||||
|
|
|
@ -41,6 +41,7 @@ class ThreadPoolExecutorTest(ThreadPoolMixin, ExecutorTest, BaseTestCase):
|
|||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue