projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a recent bug in executors. Thread executor needs to return
[python_utils.git]
/
tests
/
parallelize_itest.py
diff --git
a/tests/parallelize_itest.py
b/tests/parallelize_itest.py
index 11c5676173ce584ae1f6a13fb3c5c1e3d8549b5b..6ac95380c5a9a132fb7c43172d1a30d0ce59e2ee 100755
(executable)
--- 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):
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}')
smart_future.wait_all(results)
for future in results:
print(f'Thread: {future}')