]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
test_concurrent_futures: Fix unneeded/confusing format call (#93119)
authorFlorian Bruhin <me@the-compiler.org>
Tue, 19 Jul 2022 02:12:40 +0000 (19:12 -0700)
committerGitHub <noreply@github.com>
Tue, 19 Jul 2022 02:12:40 +0000 (19:12 -0700)
Added in 339fd46cb764277cbbdc3e78dcc5b45b156bb6ae - but as noted in a comment, the test only tests ThreadPoolExecutor.

Lib/test/test_concurrent_futures.py

index f50255bd575601ba18920c7c01f9a94d86a25b63..e294bd3a0957c76eabc502acf58df1bd53c33989 100644 (file)
@@ -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)