test_concurrent_futures: Fix unneeded/confusing format call (#93119)

Added in 339fd46cb7 - but as noted in a comment, the test only tests ThreadPoolExecutor.
This commit is contained in:
Florian Bruhin 2022-07-18 19:12:40 -07:00 committed by GitHub
parent 7a1a85d640
commit 3f2dd0a7c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)