Skip to content

Commit 092b632

Browse files
committed
Add test
1 parent 07e9af5 commit 092b632

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Lib/test/test_concurrent_futures/test_interpreter_pool.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,10 @@ def test_import_interpreter_pool_executor(self):
498498
self.assertEqual(p.stdout.decode(), '')
499499
self.assertEqual(p.stderr.decode(), '')
500500

501+
def test_thread_name_prefix(self):
502+
self.assertStartsWith(self.executor._thread_name_prefix,
503+
"InterpreterPoolExecutor-")
504+
501505

502506
class AsyncioTest(InterpretersMixin, testasyncio_utils.TestCase):
503507

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix :class:`concurrent.futures.InterpreterPoolExecutor`'s custom thread
2+
name.

0 commit comments

Comments
 (0)