This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_multiprocessing_spawn regression on Windows
Type: behavior Stage: resolved
Components: Library (Lib), Tests Versions: Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: lukasz.langa, pablogsal, pierreglaser, pitrou, vstinner
Priority: deferred blocker Keywords: patch

Created on 2019-05-12 17:03 by pitrou, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 13290 merged pitrou, 2019-05-13 17:08
Messages (6)
msg342262 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2019-05-12 17:03
After bpo-36867, test_multiprocessing_spawn fails running any test on Windows (but it isn't noticed as a fail build).

https://ci.appveyor.com/project/python/cpython/builds/24485897#L1264

0:04:05 load avg: 5.39 [389/421] test_multiprocessing_spawn run no tests
ERROR
======================================================================
ERROR: setUpModule (test.test_multiprocessing_spawn)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\projects\cpython\lib\test\_test_multiprocessing.py", line 5498, in setUpModule
    multiprocessing.set_forkserver_preload(PRELOAD)
  File "C:\projects\cpython\lib\multiprocessing\context.py", line 183, in set_forkserver_preload
    from .forkserver import set_forkserver_preload
  File "C:\projects\cpython\lib\multiprocessing\forkserver.py", line 14, in <module>
    from . import resource_tracker
  File "C:\projects\cpython\lib\multiprocessing\resource_tracker.py", line 24, in <module>
    import _posixshmem
ModuleNotFoundError: No module named '_posixshmem'
----------------------------------------------------------------------
Ran 0 tests in 0.005s
FAILED (errors=1)
msg342270 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2019-05-12 21:49
Indeed, this is failing as well in all buildbots but has not been reported because fails in the setUp and therefore is counted as "RUN NO TESTS". Example:

https://buildbot.python.org/all/#/builders/58/builds/2368/steps/3/logs/stdio
msg342368 - (view) Author: Pierre Glaser (pierreglaser) * Date: 2019-05-13 17:50
Thanks for the fix Antoine.
msg342371 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2019-05-13 18:02
New changeset 95da83d9bac698d420cc308e8699ef6e4fae2aca by Antoine Pitrou in branch 'master':
bpo-36894: Fix regression in test_multiprocessing_spawn (no tests run on Windows) (GH-13290)
https://github.com/python/cpython/commit/95da83d9bac698d420cc308e8699ef6e4fae2aca
msg344609 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2019-06-04 17:13
Can this be closed?
msg344682 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-06-05 08:24
I close the issue.
History
Date User Action Args
2022-04-11 14:59:15adminsetgithub: 81075
2019-06-05 08:24:31vstinnersetstatus: open -> closed

nosy: + vstinner
messages: + msg344682

resolution: fixed
stage: patch review -> resolved
2019-06-04 17:13:12lukasz.langasetnosy: + lukasz.langa
messages: + msg344609
2019-05-13 18:02:52pitrousetmessages: + msg342371
2019-05-13 17:50:03pierreglasersetmessages: + msg342368
2019-05-13 17:08:42pitrousetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request13199
2019-05-12 21:49:51pablogsalsetnosy: + pablogsal
messages: + msg342270
2019-05-12 17:03:41pitroucreate