We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 092b632 commit 8abaaf6Copy full SHA for 8abaaf6
Lib/test/test_concurrent_futures/test_interpreter_pool.py
@@ -502,6 +502,13 @@ def test_thread_name_prefix(self):
502
self.assertStartsWith(self.executor._thread_name_prefix,
503
"InterpreterPoolExecutor-")
504
505
+ def f():
506
+ import _thread
507
+ return _thread._get_name()
508
+
509
+ self.assertStartsWith(self.executor.submit(f).result(),
510
+ "InterpreterPoolExecutor-")
511
512
513
class AsyncioTest(InterpretersMixin, testasyncio_utils.TestCase):
514
0 commit comments