]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
test_concurrent_futures: Fix unneeded/confusing format call (GH-93119)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 19 Jul 2022 02:38:05 +0000 (19:38 -0700)
committerGitHub <noreply@github.com>
Tue, 19 Jul 2022 02:38:05 +0000 (19:38 -0700)
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>
Lib/test/test_concurrent_futures.py

index d8e091979aee3d860bd696a3b4e6a103291d0dc7..e5eed9958111bf1917b00a4c8cc1a1ea3139455e 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)