From f2b4fe83f6fc853a68653bd5e3d9fe0648c3d105 Mon Sep 17 00:00:00 2001 From: Scott Date: Sun, 30 Jan 2022 22:09:43 -0800 Subject: Fix a recent bug in executors. Thread executor needs to return its future. --- tests/parallelize_itest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/parallelize_itest.py') diff --git a/tests/parallelize_itest.py b/tests/parallelize_itest.py index 11c5676..6ac9538 100755 --- a/tests/parallelize_itest.py +++ b/tests/parallelize_itest.py @@ -37,7 +37,8 @@ def compute_factorial_remote(n): def test_thread_parallelization() -> None: results = [] for _ in range(50): - results.append(compute_factorial_thread(_)) + f = compute_factorial_thread(_) + results.append(f) smart_future.wait_all(results) for future in results: print(f'Thread: {future}') -- cgit v1.3