File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed
Lib/test/test_free_threading Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ def read_set():
149149 t .join ()
150150
151151 @threading_helper .reap_threads
152- def test_length_hint_used_race (self ):
152+ def test_length_hint_with_mutating_set (self ):
153153 NUM_ITERS = 10
154154 NUM_THREADS = 10
155155 NUM_LOOPS = 2_000
@@ -185,24 +185,6 @@ def worker():
185185
186186 threading_helper .run_concurrently (worker , nthreads = NUM_THREADS )
187187
188- @threading_helper .reap_threads
189- def test_iternext_concurrent_exhaust_race (self ):
190- NUM_ITERS = 10
191- NUM_THREADS = 10
192-
193- for _ in range (NUM_ITERS ):
194- s = set (range (64 ))
195- it = iter (s )
196-
197- def worker ():
198- while True :
199- try :
200- next (it )
201- except StopIteration :
202- break
203-
204- threading_helper .run_concurrently (worker , nthreads = NUM_THREADS )
205-
206188
207189@threading_helper .requires_working_threading ()
208190class SmallSetTest (RaceTestBase , unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments