X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=tests%2Fparallelize_itest.py;h=6ac95380c5a9a132fb7c43172d1a30d0ce59e2ee;hb=f2b4fe83f6fc853a68653bd5e3d9fe0648c3d105;hp=11c5676173ce584ae1f6a13fb3c5c1e3d8549b5b;hpb=865825894beeedd47d26dd092d40bfee582f5475;p=python_utils.git 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}')