From 76a2e254c286b0e52fc49de1889c5c760550e324 Mon Sep 17 00:00:00 2001 From: Matteo Cafasso Date: Thu, 18 Apr 2024 00:00:13 +0100 Subject: [PATCH] fix: fix typo in test Signed-off-by: Matteo Cafasso --- test/test_thread_pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)