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 c055468 commit affe63eCopy full SHA for affe63e
1 file changed
Lib/test/test_concurrent_futures/test_interpreter_pool.py
@@ -509,9 +509,10 @@ def f():
509
import _thread
510
return _thread._get_name()
511
512
+ # Some platforms (Linux) are using 16 bytes to store the thread name,
513
+ # so only compare the first 15 bytes (without the trailing \n).
514
self.assertStartsWith(self.executor.submit(f).result(),
- "InterpreterPoolExecutor-")
-
515
+ "InterpreterPoolExecutor-"[:15])
516
517
class AsyncioTest(InterpretersMixin, testasyncio_utils.TestCase):
518
0 commit comments