Skip to content

Commit

Permalink
pythongh-115258: Temporarily disable test on free-threaded Windows build
Browse files Browse the repository at this point in the history
The "test_shutdown_all_methods_in_many_threads" test times out on the Windows
free-threaded CI. This skips the test on that platform and configuration until
we figure out the root cause.
  • Loading branch information
colesbury committed Feb 11, 2024
1 parent 4821f08 commit 807dfd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lib/test/test_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
# to ensure the Queue locks remain stable.
import itertools
import random
import sys
import threading
import time
import unittest
import weakref
from test.support import gc_collect
from test.support import import_helper
from test.support import threading_helper
from test.support import Py_GIL_DISABLED

# queue module depends on threading primitives
threading_helper.requires_working_threading(module=True)
Expand Down Expand Up @@ -402,6 +404,8 @@ def _shutdown_all_methods_in_many_threads(self, immediate):
for thread in ps[1:]:
thread.join()

@unittest.skipIf(sys.platform == 'win32' and Py_GIL_DISABLED,
"test times out (gh-115258)")
def test_shutdown_all_methods_in_many_threads(self):
return self._shutdown_all_methods_in_many_threads(False)

Expand Down

0 comments on commit 807dfd4

Please sign in to comment.