From: Florian Bruhin Date: Tue, 19 Jul 2022 02:12:40 +0000 (-0700) Subject: test_concurrent_futures: Fix unneeded/confusing format call (#93119) X-Git-Tag: v3.12.0a1~919 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f2dd0a7c0b1a5112f2164dce78fcfaa0c4b39c7;p=thirdparty%2FPython%2Fcpython.git test_concurrent_futures: Fix unneeded/confusing format call (#93119) Added in 339fd46cb764277cbbdc3e78dcc5b45b156bb6ae - but as noted in a comment, the test only tests ThreadPoolExecutor. --- diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py index f50255bd5756..e294bd3a0957 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)