From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 8 Jul 2026 15:10:56 +0000 (+0200) Subject: [3.15] gh-153339: Remove extra skip in `test_generators.py` (GH-153340) (#153343) X-Git-Tag: v3.15.0b4~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d63f3fab95d09478545e1dd2b5368a4083c3070b;p=thirdparty%2FPython%2Fcpython.git [3.15] gh-153339: Remove extra skip in `test_generators.py` (GH-153340) (#153343) gh-153339: Remove extra skip in `test_generators.py` (GH-153340) (cherry picked from commit f932a741909da03edfac7ab537c093d2379599a4) Co-authored-by: sobolevn --- diff --git a/Lib/test/test_free_threading/test_generators.py b/Lib/test/test_free_threading/test_generators.py index 2b41e28896f5..382503eebd12 100644 --- a/Lib/test/test_free_threading/test_generators.py +++ b/Lib/test/test_free_threading/test_generators.py @@ -3,11 +3,10 @@ import itertools import threading import unittest from threading import Barrier -from unittest import TestCase import random import time -from test.support import threading_helper, Py_GIL_DISABLED +from test.support import threading_helper threading_helper.requires_working_threading(module=True) @@ -32,8 +31,7 @@ def set_gen_qualname(g, b): return g.__qualname__ -@unittest.skipUnless(Py_GIL_DISABLED, "Enable only in FT build") -class TestFTGenerators(TestCase): +class TestFTGenerators(unittest.TestCase): NUM_THREADS = 4 def concurrent_write_with_func(self, func):