diff --git a/Lib/test/test_free_threading/test_slots.py b/Lib/test/test_free_threading/test_slots.py index a1f9abd698c6f7..b4076522b4341d 100644 --- a/Lib/test/test_free_threading/test_slots.py +++ b/Lib/test/test_free_threading/test_slots.py @@ -3,9 +3,6 @@ from unittest import TestCase -# import _testcapi - - def run_in_threads(targets): """Run `targets` in separate threads""" threads = [ @@ -24,8 +21,7 @@ class TestSlots(TestCase): def test_object(self): class Spam: __slots__ = [ - "eggs", # the Py_T_OBJECT_EX type is missing in - # Modules/_testcapi/structmember.c + "eggs", ] def __init__(self, initial_value): @@ -45,21 +41,3 @@ def reader(): assert 0 <= eggs <= iters run_in_threads([writer, reader, reader, reader]) - - # def test_bool(self): - # spam_old = _testcapi._test_structmembersType_OldAPI() - # spam_new = _testcapi._test_structmembersType_NewAPI() - # - # def writer(): - # for _ in range(1_000): - # spam_old.T_BOOL = True - # spam_old.T_BOOL = False # separate code path for True/False - # spam_new.T_BOOL = True - # spam_new.T_BOOL = False - # - # def reader(): - # for _ in range(1_000): - # spam_old.T_BOOL - # spam_new.T_BOOL - # - # run_in_threads([writer, reader, reader, reader])