diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-07-19 02:38:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-19 02:38:05 (GMT) |
commit | 96e15167b0a902db206f0868f081b3d73e4e18fc (patch) | |
tree | 61e264c4026d91744f364d3b01ff1c83a83e1e2b /Lib/test/test_concurrent_futures.py | |
parent | dda9198021b3c34a4882c8524f720b2f83a56ea1 (diff) | |
download | cpython-96e15167b0a902db206f0868f081b3d73e4e18fc.zip cpython-96e15167b0a902db206f0868f081b3d73e4e18fc.tar.gz cpython-96e15167b0a902db206f0868f081b3d73e4e18fc.tar.bz2 |
test_concurrent_futures: Fix unneeded/confusing format call (GH-93119)
Added in 339fd46cb764277cbbdc3e78dcc5b45b156bb6ae - but as noted in a comment, the test only tests ThreadPoolExecutor.
(cherry picked from commit 3f2dd0a7c0b1a5112f2164dce78fcfaa0c4b39c7)
Co-authored-by: Florian Bruhin <me@the-compiler.org>
Diffstat (limited to 'Lib/test/test_concurrent_futures.py')
-rw-r--r-- | Lib/test/test_concurrent_futures.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py index d8e0919..e5eed99 100644 --- a/Lib/test/test_concurrent_futures.py +++ b/Lib/test/test_concurrent_futures.py @@ -485,7 +485,7 @@ class ThreadPoolShutdownTest(ThreadPoolMixin, ExecutorShutdownTest, BaseTestCase t = ThreadPoolExecutor() t.submit(sleep_and_print, .1, "apple") t.shutdown(wait=False, cancel_futures=True) - """.format(executor_type=self.executor_type.__name__)) + """) # Errors in atexit hooks don't change the process exit code, check # stderr manually. self.assertFalse(err) |