Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Skip instead of failing if assumptions are invalid
  • Loading branch information
duaneg committed Oct 17, 2025
commit 98276628f034a4e3116e8df44685c1464278a09b
3 changes: 2 additions & 1 deletion Lib/test/test_concurrent_futures/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ def test_swallows_falsey_exceptions(self):

@warnings_helper.ignore_fork_in_thread_deprecation_warnings()
def test_shutdown_notifies_cancelled_futures(self):
self.assertGreater(self.worker_count, 1)
if self.worker_count < 2:
self.skipTest("test requires more than one worker")

# TODO: remove when gh-109934 is fixed
if self.executor_type is futures.ThreadPoolExecutor:
Expand Down
Loading