Skip to content

Extra skip in test_free_threading/test_generators.py #153339

Description

@sobolevn

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

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtype-refactorCode refactoring (with no changes in behavior)

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions