[Python-checkins] test_concurrent_futures: Fix unneeded/confusing format call (#93119)

JelleZijlstra webhook-mailer at python.org
Mon Jul 18 22:12:56 EDT 2022


https://github.com/python/cpython/commit/3f2dd0a7c0b1a5112f2164dce78fcfaa0c4b39c7
commit: 3f2dd0a7c0b1a5112f2164dce78fcfaa0c4b39c7
branch: main
author: Florian Bruhin <me at the-compiler.org>
committer: JelleZijlstra <jelle.zijlstra at gmail.com>
date: 2022-07-18T19:12:40-07:00
summary:

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

Added in 339fd46cb764277cbbdc3e78dcc5b45b156bb6ae - but as noted in a comment, the test only tests ThreadPoolExecutor.

files:
M Lib/test/test_concurrent_futures.py

diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py
index f50255bd57560..e294bd3a0957c 100644
--- a/Lib/test/test_concurrent_futures.py
+++ b/Lib/test/test_concurrent_futures.py
@@ -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)



More information about the Python-checkins mailing list