]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-153339: Remove extra skip in `test_generators.py` (#153340)
authorsobolevn <mail@sobolevn.me>
Wed, 8 Jul 2026 14:13:24 +0000 (17:13 +0300)
committerGitHub <noreply@github.com>
Wed, 8 Jul 2026 14:13:24 +0000 (17:13 +0300)
Lib/test/test_free_threading/test_generators.py

index 2b41e28896f5a8b10bec61cd48f6cf77a2ece3a9..382503eebd123f109d75776e9c5ee39bd7d81fb7 100644 (file)
@@ -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):