summaryrefslogtreecommitdiff
path: root/Lib/test/test_concurrent_futures.py
diff options
context:
space:
mode:
authorLeo Arias <leo.arias@canonical.com>2018-02-03 18:36:10 -0600
committerTerry Jan Reedy <tjreedy@udel.edu>2018-02-03 19:36:10 -0500
commitc3d9508ff22ece9a96892b628dd5813e2fb0cd80 (patch)
tree56271a3b3e3681e47e97ec2dca926bc9cb891a5e /Lib/test/test_concurrent_futures.py
parent589c718a8e3bde017350f248f7f1c009240eb52b (diff)
downloadcpython-git-c3d9508ff22ece9a96892b628dd5813e2fb0cd80.tar.gz
bpo-32746: Fix multiple typos (GH-5144)
Fix typos found by codespell in docs, docstrings, and comments.
Diffstat (limited to 'Lib/test/test_concurrent_futures.py')
-rw-r--r--Lib/test/test_concurrent_futures.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py
index 675cd7ae05..18d0265f3f 100644
--- a/Lib/test/test_concurrent_futures.py
+++ b/Lib/test/test_concurrent_futures.py
@@ -398,7 +398,7 @@ class ProcessPoolShutdownTest(ExecutorShutdownTest):
queue_management_thread = executor._queue_management_thread
del executor
- # Make sure that all the executor ressources were properly cleaned by
+ # Make sure that all the executor resources were properly cleaned by
# the shutdown process
queue_management_thread.join()
for p in processes.values():
@@ -886,24 +886,24 @@ class ExecutorDeadlockTest:
# extensive testing for deadlock caused by crashes in a pool.
self.executor.shutdown(wait=True)
crash_cases = [
- # Check problem occuring while pickling a task in
+ # Check problem occurring while pickling a task in
# the task_handler thread
(id, (ErrorAtPickle(),), PicklingError, "error at task pickle"),
- # Check problem occuring while unpickling a task on workers
+ # Check problem occurring while unpickling a task on workers
(id, (ExitAtUnpickle(),), BrokenProcessPool,
"exit at task unpickle"),
(id, (ErrorAtUnpickle(),), BrokenProcessPool,
"error at task unpickle"),
(id, (CrashAtUnpickle(),), BrokenProcessPool,
"crash at task unpickle"),
- # Check problem occuring during func execution on workers
+ # Check problem occurring during func execution on workers
(_crash, (), BrokenProcessPool,
"crash during func execution on worker"),
(_exit, (), SystemExit,
"exit during func execution on worker"),
(_raise_error, (RuntimeError, ), RuntimeError,
"error during func execution on worker"),
- # Check problem occuring while pickling a task result
+ # Check problem occurring while pickling a task result
# on workers
(_return_instance, (CrashAtPickle,), BrokenProcessPool,
"crash during result pickle on worker"),
@@ -911,7 +911,7 @@ class ExecutorDeadlockTest:
"exit during result pickle on worker"),
(_return_instance, (ErrorAtPickle,), PicklingError,
"error during result pickle on worker"),
- # Check problem occuring while unpickling a task in
+ # Check problem occurring while unpickling a task in
# the result_handler thread
(_return_instance, (ErrorAtUnpickle,), BrokenProcessPool,
"error during result unpickle in result_handler"),