Skip to content

Commit 1ce898a

Browse files
committed
Update test cases
1 parent 2a512a8 commit 1ce898a

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

Lib/test/test_free_threading/test_set.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff 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()
208190
class SmallSetTest(RaceTestBase, unittest.TestCase):

0 commit comments

Comments
 (0)