Skip to content

gh-144175: Remove internal _PyArg_ParseStack() function - #159150

Open
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:parse_array
Open

vstinner wants to merge 1 commit into
python:mainfrom
vstinner:parse_array

Conversation

@vstinner

@vstinner vstinner commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Replace internal _PyArg_ParseStack() with public PyArg_ParseArray() in Argument Clinic.

Replace internal _PyArg_ParseStack() with public PyArg_ParseArray()
in Argument Clinic.
@vstinner

Copy link
Copy Markdown
Member Author

Two tests failed, unrelated failures. I restarted the CIs.

Sanitizers / MSan: a process took longer than the timeout of 30 seconds:

ERROR: test_interrupt (test.test_multiprocessing_forkserver.test_processes.WithProcessesTestProcess.test_interrupt)
..
RuntimeError: join took too long: <Process name='Process-167' pid=20684 parent=18303 started daemon>

test_multiprocessing_spawn:

0:27:20 load avg: 7.36 mem: 17.5 MiB [2/2/1] test.test_multiprocessing_spawn.test_threads failed (1 failure)
Re-running test.test_multiprocessing_spawn.test_threads in verbose mode (matching: test_imap_and_imap_unordered_with_buffersize_when_buffer_is_full, test_imap_and_imap_unordered_with_buffersize_when_buffer_is_full)
test_imap_and_imap_unordered_with_buffersize_when_buffer_is_full (test.test_multiprocessing_spawn.test_threads.WithThreadsTestPool.test_imap_and_imap_unordered_with_buffersize_when_buffer_is_full) ... 
  test_imap_and_imap_unordered_with_buffersize_when_buffer_is_full (test.test_multiprocessing_spawn.test_threads.WithThreadsTestPool.test_imap_and_imap_unordered_with_buffersize_when_buffer_is_full) (method_name='imap') ... FAIL
Warning -- Dangling threads: {<DummyProcess(Thread-10 (worker), started daemon 4380)>, <DummyProcess(Thread-9 (worker), started daemon 10836)>, <Thread(Thread-13 (_handle_tasks), started daemon 1020)>, <Thread(Thread-12 (_handle_workers), started daemon 1508)>, <Thread(Thread-14 (_handle_results), started daemon 1076)>, <DummyProcess(Thread-8 (worker), started daemon 8568)>, <DummyProcess(Thread-11 (worker), started daemon 10040)>}
Warning -- Dangling threads: {<DummyProcess(Thread-10 (worker), started daemon 4380)>, <DummyProcess(Thread-9 (worker), started daemon 10836)>, <Thread(Thread-13 (_handle_tasks), started daemon 1020)>, <Thread(Thread-12 (_handle_workers), started daemon 1508)>, <Thread(Thread-14 (_handle_results), started daemon 1076)>, <DummyProcess(Thread-8 (worker), started daemon 8568)>, <DummyProcess(Thread-11 (worker), started daemon 10040)>}
Warning -- Unraisable exception
Exception ignored while calling deallocator <function Pool.__del__ at 0x000002000395E390>:
Traceback (most recent call last):
  File "D:\a\cpython\cpython\Lib\multiprocessing\pool.py", line 274, in __del__
    _warn(f"unclosed running multiprocessing pool {self!r}",
    ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          ResourceWarning, source=self)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ResourceWarning: unclosed running multiprocessing pool <multiprocessing.pool.ThreadPool state=RUN pool_size=4>

======================================================================
FAIL: test_imap_and_imap_unordered_with_buffersize_when_buffer_is_full (test.test_multiprocessing_spawn.test_threads.WithThreadsTestPool.test_imap_and_imap_unordered_with_buffersize_when_buffer_is_full) (method_name='imap')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\a\cpython\cpython\Lib\test\support\__init__.py", line 1128, in wrapper
    func(self, *args, **kwargs, **subtest_kwargs)
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\cpython\cpython\Lib\test\_test_multiprocessing.py", line 3229, in test_imap_and_imap_unordered_with_buffersize_when_buffer_is_full
    self.assertEqual(last_produced_task_arg.value, processes + 2)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 5 != 6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant