diff --git a/Lib/multiprocessing/pool.py b/Lib/multiprocessing/pool.py index cede9bbd5d40d09..1e26a9b56f0ca84 100644 --- a/Lib/multiprocessing/pool.py +++ b/Lib/multiprocessing/pool.py @@ -486,7 +486,7 @@ def _handle_results(outqueue, get, cache): util.debug('result handler got EOFError/OSError -- exiting') return - if thread._state != "RUN": + if thread._state != RUN: assert thread._state == TERMINATE, "Thread not in TERMINATE" util.debug('result handler found thread._state=TERMINATE') break