test_concurrent_futures: Fix unneeded/confusing format call (GH-93119)

Added in 339fd46cb7 - but as noted in a comment, the test only tests ThreadPoolExecutor.
(cherry picked from commit 3f2dd0a7c0)

Co-authored-by: Florian Bruhin <me@the-compiler.org>
This commit is contained in:
Miss Islington (bot) 2022-07-18 19:38:05 -07:00 committed by GitHub
parent dda9198021
commit 96e15167b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -485,7 +485,7 @@ def test_cancel_futures_wait_false(self):
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)