Skip to content

Commit 1519687

Browse files
committed
Add a delay for FT builds
1 parent 4709751 commit 1519687

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/test_threading.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,6 +1474,9 @@ def _set_ident_error():
14741474
thread._set_ident = _set_ident_error
14751475
thread.start()
14761476

1477+
# Give the thread a moment to clean up after itself
1478+
# specially in free-threading builds.
1479+
time.sleep(0.1)
14771480
self.assertFalse(thread.is_alive())
14781481
self.assertFalse(thread in threading._limbo)
14791482
self.assertFalse(thread in threading._active)

0 commit comments

Comments
 (0)