diff --git a/test/test_thread_pool.py b/test/test_thread_pool.py index eb7f63c..2d35c73 100644 --- a/test/test_thread_pool.py +++ b/test/test_thread_pool.py @@ -367,7 +367,7 @@ def test_thread_pool_map_broken_pool(self): with ThreadPool(max_workers=1) as pool: future = pool.map(long_function, elements, timeout=1) generator = future.result() - pool._context.state = PoolStatus.ERROR + pool._context.status = PoolStatus.ERROR while True: try: next(generator)