We don't need Py_GIL_DISABLED here:
|
@unittest.skipUnless(Py_GIL_DISABLED, "Enable only in FT build") |
|
class TestFTGenerators(TestCase): |
|
NUM_THREADS = 4 |
|
|
|
def concurrent_write_with_func(self, func): |
|
gen = (x for x in range(42)) |
|
for j in range(1000): |
Because we already skip these tests on __init__.py level:
|
from test import support |
|
|
|
|
|
if not support.Py_GIL_DISABLED: |
|
raise unittest.SkipTest("GIL enabled") |
|
|
|
def load_tests(*args): |
|
return support.load_package_tests(os.path.dirname(__file__), *args) |
Linked PRs
We don't need
Py_GIL_DISABLEDhere:cpython/Lib/test/test_free_threading/test_generators.py
Lines 35 to 41 in 8615062
Because we already skip these tests on
__init__.pylevel:cpython/Lib/test/test_free_threading/__init__.py
Lines 4 to 11 in 8615062
Linked PRs
test_generators.py#153340test_generators.py(GH-153340) #153343