<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/_test_multiprocessing.py, branch 3.8</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/_test_multiprocessing.py?h=3.8</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/_test_multiprocessing.py?h=3.8'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2021-10-19T19:15:06Z</updated>
<entry>
<title>bpo-45310: Fix parrallel shared memory tests (GH-28661) (GH-28979)</title>
<updated>2021-10-19T19:15:06Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-10-19T19:15:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7f70ba36706219181546c05363097f732827a081'/>
<id>urn:sha1:7f70ba36706219181546c05363097f732827a081</id>
<content type='text'>
Add a PID to names of POSIX shared memory objects to allow
running multiprocessing tests (test_multiprocessing_fork,
test_multiprocessing_spawn, etc) in parallel.

(cherry picked from commit eb4495e8e275c83d691add116c4f2b74e73e3cc8)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-41344: Raise ValueError when creating shared memory of size 0 (GH-21556) (GH-22019)</title>
<updated>2020-08-30T19:42:27Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-08-30T19:42:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=38e32872eb3cf0dc9dd8cef9b05e47ba03638d34'/>
<id>urn:sha1:38e32872eb3cf0dc9dd8cef9b05e47ba03638d34</id>
<content type='text'>
(cherry picked from commit 475a5fbb5644ea200c990d85d8c264e78ab6c7ea)

Co-authored-by: Vinay Sharma &lt;vinay04sharma@icloud.com&gt;

Co-authored-by: Vinay Sharma &lt;vinay04sharma@icloud.com&gt;</content>
</entry>
<entry>
<title>[3.8] bpo-41043: Escape literal part of the path for glob(). (GH-20994). (GH-21277)</title>
<updated>2020-07-02T07:05:35Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-07-02T07:05:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e73896241e55f452656fd8070eb79f344091bca0'/>
<id>urn:sha1:e73896241e55f452656fd8070eb79f344091bca0</id>
<content type='text'>
(cherry picked from commit 935586845815f5b4c7814794413f6a812d4bd45f)</content>
</entry>
<entry>
<title>bpo-38377: Add support.skip_if_broken_multiprocessing_synchronize() (GH-20944) (GH-20962) (GH-20966)</title>
<updated>2020-06-18T16:56:43Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-06-18T16:56:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e8056180a13b6755e4e3e5505b7bf03f79da29fb'/>
<id>urn:sha1:e8056180a13b6755e4e3e5505b7bf03f79da29fb</id>
<content type='text'>
On Linux, skip tests using multiprocessing if the current user cannot
create a file in /dev/shm/ directory. Add the
skip_if_broken_multiprocessing_synchronize() function to the
test.support module.

(cherry picked from commit ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881)
(cherry picked from commit b1e736113484c99acb57e4acb417b91a9e58e7ff)</content>
</entry>
<entry>
<title>bpo-39244: multiprocessing return default start method first on macOS (GH-18625)</title>
<updated>2020-05-26T15:13:59Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-05-26T15:13:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=285ff63351bb5a42099527c283f65434e761be83'/>
<id>urn:sha1:285ff63351bb5a42099527c283f65434e761be83</id>
<content type='text'>
(cherry picked from commit db098bc1f05bd0773943e59f83489f05f28dedf8)

Co-authored-by: idomic &lt;michael.ido@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-40135: Fix multiprocessing test_shared_memory_across_processes() (GH-19892)</title>
<updated>2020-05-04T15:25:22Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-05-04T15:25:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=70fe95cdc9ac1b00d4f86b7525dca80caf7003e1'/>
<id>urn:sha1:70fe95cdc9ac1b00d4f86b7525dca80caf7003e1</id>
<content type='text'>
Don't define shared memory block's name in test_shared_memory_across_processes():
use SharedMemory(create=True) instead.
(cherry picked from commit caa3ef284a2e5e5b9bdd6a9e619804122c842d80)

Co-authored-by: Hai Shi &lt;shihai1992@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-39983: Add test.support.print_warning() (GH-19683) (GH-19687)</title>
<updated>2020-04-23T21:55:07Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-23T21:55:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3340b2a61b458e7087c8c5fea063b1b45e1a4a07'/>
<id>urn:sha1:3340b2a61b458e7087c8c5fea063b1b45e1a4a07</id>
<content type='text'>
Log "Warning -- ..." test warnings into sys.__stderr__ rather than
sys.stderr, to ensure to display them even if sys.stderr is captured.

test.libregrtest.utils.print_warning() now calls
test.support.print_warning().

(cherry picked from commit d663d34685e18588748569468c672763f4c73b3e)</content>
</entry>
<entry>
<title>[3.8] bpo-40330: Fix utf-8 size check in ShareableList (GH-19606) (GH-19625)</title>
<updated>2020-04-20T19:22:50Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>antoine@python.org</email>
</author>
<published>2020-04-20T19:22:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=887ff8e37e238fbce18c647e588283904f38ab24'/>
<id>urn:sha1:887ff8e37e238fbce18c647e588283904f38ab24</id>
<content type='text'>
The item size must be checked after encoding to bytes, not before.

Automerge-Triggered-By: @pitrou.
(cherry picked from commit eba9f6155df59c9beed97fb5764c9f01dd941af0)

Co-authored-by: Antoine Pitrou &lt;antoine@python.org&gt;</content>
</entry>
<entry>
<title>bpo-39360: Ensure all workers exit when finalizing a multiprocessing Pool (GH-19009)</title>
<updated>2020-03-15T21:26:43Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-03-15T21:26:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7f5302fed4ff0cc8042e639b29a0664a16bc2702'/>
<id>urn:sha1:7f5302fed4ff0cc8042e639b29a0664a16bc2702</id>
<content type='text'>
When the pull is not used via the context manager or terminate() is called, there is a system in multiprocessing.util that handles finalization of all pools via an atexit handler (the Finalize) class. This class registers the _terminate_pool handler in the registry of finalizers of the module, and that registry is called on interpreter exit via _exit_function. The problem is that the "happy" path with the context manager or manual call to finalize() does some extra steps that _terminate_pool does not. The step that is not executed when the atexit() handler calls _terminate_pool is pinging the _change_notifier queue to unblock the maintenance threads.

This commit moves the notification to the _terminate_pool function so is called from both code paths.

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;
(cherry picked from commit ac10e0c93218627d1a639db0b7b41714c5f6a883)

Co-authored-by: Batuhan Taşkaya &lt;47358913+isidentical@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>[3.8] bpo-39850: Add support for abstract sockets in multiprocessing (GH-18866) (GH-18876)</title>
<updated>2020-03-09T14:48:03Z</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2020-03-09T14:48:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3ede1bc794a575a73c6cc74addb5586f4e33a1f5'/>
<id>urn:sha1:3ede1bc794a575a73c6cc74addb5586f4e33a1f5</id>
<content type='text'>
(cherry picked from commit 6012f30beff7fa8396718dfb198ccafc333c565b)</content>
</entry>
</feed>
