Skip to content

Commit 226ee85

Browse files
committed
Refactor3 test
1 parent 9b38adf commit 226ee85

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/test/test_thread.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def mutator(shared, stop, prefix, burst):
368368
results.append(prefix)
369369

370370
def nop(i, **kwargs):
371-
pass
371+
results.append(i)
372372

373373
with threading_helper.wait_threads_exit():
374374
stop = thread.lock()
@@ -389,9 +389,9 @@ def nop(i, **kwargs):
389389
DELAY = 1.0
390390
# wait for all mutator threads stop.
391391
for _ in support.sleeping_retry(support.SHORT_TIMEOUT):
392-
if len(results) == n:
392+
if len(results) == n+snt:
393393
break
394-
self.assertTrue(True, "test successful")
394+
self.assertTrue(True, "successful test")
395395

396396

397397
class Barrier:

0 commit comments

Comments
 (0)