Skip to content

Commit 8abaaf6

Browse files
committed
Update test
1 parent 092b632 commit 8abaaf6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Lib/test/test_concurrent_futures/test_interpreter_pool.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,13 @@ def test_thread_name_prefix(self):
502502
self.assertStartsWith(self.executor._thread_name_prefix,
503503
"InterpreterPoolExecutor-")
504504

505+
def f():
506+
import _thread
507+
return _thread._get_name()
508+
509+
self.assertStartsWith(self.executor.submit(f).result(),
510+
"InterpreterPoolExecutor-")
511+
505512

506513
class AsyncioTest(InterpretersMixin, testasyncio_utils.TestCase):
507514

0 commit comments

Comments
 (0)