mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
test_concurrent_futures: Fix unneeded/confusing format call (GH-93119)
Added in339fd46cb7
- but as noted in a comment, the test only tests ThreadPoolExecutor. (cherry picked from commit3f2dd0a7c0
) Co-authored-by: Florian Bruhin <me@the-compiler.org>
This commit is contained in:
parent
7733aa048e
commit
fbd24068c2
1 changed files with 1 additions and 1 deletions
|
@ -484,7 +484,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue