>>> py3-loky: Building community/py3-loky 3.5.3-r0 (using abuild 3.15.0-r0) started Sun, 12 Oct 2025 20:05:20 +0000 >>> py3-loky: Validating /home/udu/aports/community/py3-loky/APKBUILD... >>> WARNING: py3-loky: No maintainer >>> py3-loky: Analyzing dependencies... >>> py3-loky: Installing for build: build-base python3 py3-cloudpickle py3-gpep517 py3-setuptools py3-wheel py3-pytest py3-psutil WARNING: opening /home/udu/packages//community: No such file or directory WARNING: opening /home/udu/packages//main: No such file or directory fetch http://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz (1/25) Installing py3-cloudpickle (3.1.1-r0) (2/25) Installing py3-cloudpickle-pyc (3.1.1-r0) (3/25) Installing py3-installer (0.7.0-r2) (4/25) Installing py3-installer-pyc (0.7.0-r2) (5/25) Installing py3-gpep517 (19-r0) (6/25) Installing py3-gpep517-pyc (19-r0) (7/25) Installing py3-parsing (3.2.3-r0) (8/25) Installing py3-parsing-pyc (3.2.3-r0) (9/25) Installing py3-packaging (25.0-r0) (10/25) Installing py3-packaging-pyc (25.0-r0) (11/25) Installing py3-setuptools (80.9.0-r0) (12/25) Installing py3-setuptools-pyc (80.9.0-r0) (13/25) Installing py3-wheel (0.46.1-r0) (14/25) Installing py3-wheel-pyc (0.46.1-r0) (15/25) Installing py3-iniconfig (2.1.0-r0) (16/25) Installing py3-iniconfig-pyc (2.1.0-r0) (17/25) Installing py3-pluggy (1.5.0-r0) (18/25) Installing py3-pluggy-pyc (1.5.0-r0) (19/25) Installing py3-py (1.11.0-r4) (20/25) Installing py3-py-pyc (1.11.0-r4) (21/25) Installing py3-pytest (8.3.5-r0) (22/25) Installing py3-pytest-pyc (8.3.5-r0) (23/25) Installing py3-psutil (7.0.0-r0) (24/25) Installing py3-psutil-pyc (7.0.0-r0) (25/25) Installing .makedepends-py3-loky (20251012.200522) Executing busybox-1.37.0-r19.trigger OK: 311 MiB in 114 packages >>> py3-loky: Cleaning up srcdir >>> py3-loky: Cleaning up pkgdir >>> py3-loky: Cleaning up tmpdir >>> py3-loky: Fetching py3-loky-3.5.3.tar.gz::https://github.com/joblib/loky/archive/3.5.3.tar.gz >>> py3-loky: Fetching py3-loky-3.5.3.tar.gz::https://github.com/joblib/loky/archive/3.5.3.tar.gz >>> py3-loky: Checking sha512sums... py3-loky-3.5.3.tar.gz: OK >>> py3-loky: Unpacking /var/cache/distfiles/py3-loky-3.5.3.tar.gz... 2025-10-12 20:05:22,889 gpep517 INFO Building wheel via backend setuptools.build_meta /usr/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated !! ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! corresp(dist, value, root_dir) /usr/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! dist._finalize_license_expression() /usr/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() 2025-10-12 20:05:22,944 root INFO running bdist_wheel 2025-10-12 20:05:22,956 root INFO running build 2025-10-12 20:05:22,956 root INFO running build_py 2025-10-12 20:05:22,959 root INFO creating build/lib/loky 2025-10-12 20:05:22,959 root INFO copying loky/process_executor.py -> build/lib/loky 2025-10-12 20:05:22,960 root INFO copying loky/initializers.py -> build/lib/loky 2025-10-12 20:05:22,960 root INFO copying loky/cloudpickle_wrapper.py -> build/lib/loky 2025-10-12 20:05:22,961 root INFO copying loky/reusable_executor.py -> build/lib/loky 2025-10-12 20:05:22,961 root INFO copying loky/__init__.py -> build/lib/loky 2025-10-12 20:05:22,961 root INFO copying loky/_base.py -> build/lib/loky 2025-10-12 20:05:22,962 root INFO creating build/lib/loky/backend 2025-10-12 20:05:22,962 root INFO copying loky/backend/spawn.py -> build/lib/loky/backend 2025-10-12 20:05:22,962 root INFO copying loky/backend/process.py -> build/lib/loky/backend 2025-10-12 20:05:22,962 root INFO copying loky/backend/queues.py -> build/lib/loky/backend 2025-10-12 20:05:22,963 root INFO copying loky/backend/context.py -> build/lib/loky/backend 2025-10-12 20:05:22,963 root INFO copying loky/backend/_win_reduction.py -> build/lib/loky/backend 2025-10-12 20:05:22,963 root INFO copying loky/backend/synchronize.py -> build/lib/loky/backend 2025-10-12 20:05:22,963 root INFO copying loky/backend/fork_exec.py -> build/lib/loky/backend 2025-10-12 20:05:22,964 root INFO copying loky/backend/popen_loky_posix.py -> build/lib/loky/backend 2025-10-12 20:05:22,964 root INFO copying loky/backend/utils.py -> build/lib/loky/backend 2025-10-12 20:05:22,964 root INFO copying loky/backend/_posix_reduction.py -> build/lib/loky/backend 2025-10-12 20:05:22,964 root INFO copying loky/backend/popen_loky_win32.py -> build/lib/loky/backend 2025-10-12 20:05:22,965 root INFO copying loky/backend/__init__.py -> build/lib/loky/backend 2025-10-12 20:05:22,965 root INFO copying loky/backend/resource_tracker.py -> build/lib/loky/backend 2025-10-12 20:05:22,965 root INFO copying loky/backend/reduction.py -> build/lib/loky/backend 2025-10-12 20:05:22,971 root INFO installing to build/bdist.linux-x86_64/wheel 2025-10-12 20:05:22,971 root INFO running install 2025-10-12 20:05:22,981 root INFO running install_lib 2025-10-12 20:05:22,983 root INFO creating build/bdist.linux-x86_64/wheel 2025-10-12 20:05:22,984 root INFO creating build/bdist.linux-x86_64/wheel/loky 2025-10-12 20:05:22,984 root INFO copying build/lib/loky/process_executor.py -> build/bdist.linux-x86_64/wheel/./loky 2025-10-12 20:05:22,984 root INFO copying build/lib/loky/initializers.py -> build/bdist.linux-x86_64/wheel/./loky 2025-10-12 20:05:22,984 root INFO copying build/lib/loky/cloudpickle_wrapper.py -> build/bdist.linux-x86_64/wheel/./loky 2025-10-12 20:05:22,984 root INFO copying build/lib/loky/reusable_executor.py -> build/bdist.linux-x86_64/wheel/./loky 2025-10-12 20:05:22,985 root INFO copying build/lib/loky/__init__.py -> build/bdist.linux-x86_64/wheel/./loky 2025-10-12 20:05:22,985 root INFO creating build/bdist.linux-x86_64/wheel/loky/backend 2025-10-12 20:05:22,985 root INFO copying build/lib/loky/backend/spawn.py -> build/bdist.linux-x86_64/wheel/./loky/backend 2025-10-12 20:05:22,985 root INFO copying build/lib/loky/backend/process.py -> build/bdist.linux-x86_64/wheel/./loky/backend 2025-10-12 20:05:22,985 root INFO copying build/lib/loky/backend/queues.py -> build/bdist.linux-x86_64/wheel/./loky/backend 2025-10-12 20:05:22,986 root INFO copying build/lib/loky/backend/context.py -> build/bdist.linux-x86_64/wheel/./loky/backend 2025-10-12 20:05:22,986 root INFO copying build/lib/loky/backend/_win_reduction.py -> build/bdist.linux-x86_64/wheel/./loky/backend 2025-10-12 20:05:22,986 root INFO copying build/lib/loky/backend/synchronize.py -> build/bdist.linux-x86_64/wheel/./loky/backend 2025-10-12 20:05:22,986 root INFO copying build/lib/loky/backend/fork_exec.py -> build/bdist.linux-x86_64/wheel/./loky/backend 2025-10-12 20:05:22,986 root INFO copying build/lib/loky/backend/popen_loky_posix.py -> build/bdist.linux-x86_64/wheel/./loky/backend 2025-10-12 20:05:22,986 root INFO copying build/lib/loky/backend/utils.py -> build/bdist.linux-x86_64/wheel/./loky/backend 2025-10-12 20:05:22,987 root INFO copying build/lib/loky/backend/_posix_reduction.py -> build/bdist.linux-x86_64/wheel/./loky/backend 2025-10-12 20:05:22,987 root INFO copying build/lib/loky/backend/popen_loky_win32.py -> build/bdist.linux-x86_64/wheel/./loky/backend 2025-10-12 20:05:22,987 root INFO copying build/lib/loky/backend/__init__.py -> build/bdist.linux-x86_64/wheel/./loky/backend 2025-10-12 20:05:22,987 root INFO copying build/lib/loky/backend/resource_tracker.py -> build/bdist.linux-x86_64/wheel/./loky/backend 2025-10-12 20:05:22,987 root INFO copying build/lib/loky/backend/reduction.py -> build/bdist.linux-x86_64/wheel/./loky/backend 2025-10-12 20:05:22,987 root INFO copying build/lib/loky/_base.py -> build/bdist.linux-x86_64/wheel/./loky 2025-10-12 20:05:22,987 root INFO running install_egg_info 2025-10-12 20:05:22,990 root INFO running egg_info 2025-10-12 20:05:22,992 root INFO creating loky.egg-info 2025-10-12 20:05:22,992 root INFO writing loky.egg-info/PKG-INFO 2025-10-12 20:05:22,994 root INFO writing dependency_links to loky.egg-info/dependency_links.txt 2025-10-12 20:05:22,994 root INFO writing requirements to loky.egg-info/requires.txt 2025-10-12 20:05:22,994 root INFO writing top-level names to loky.egg-info/top_level.txt 2025-10-12 20:05:22,994 root INFO writing manifest file 'loky.egg-info/SOURCES.txt' 2025-10-12 20:05:22,998 root INFO reading manifest file 'loky.egg-info/SOURCES.txt' 2025-10-12 20:05:22,998 root INFO reading manifest template 'MANIFEST.in' 2025-10-12 20:05:22,999 root WARNING warning: no files found matching '*.py' 2025-10-12 20:05:22,999 root WARNING warning: no files found matching '*.cfg' 2025-10-12 20:05:22,999 root WARNING warning: no files found matching '*.ini' 2025-10-12 20:05:23,001 root WARNING warning: no directories found matching 'doc' 2025-10-12 20:05:23,001 root WARNING warning: no previously-included files matching '*~' found anywhere in distribution 2025-10-12 20:05:23,001 root WARNING warning: no previously-included files matching '*.swp' found anywhere in distribution 2025-10-12 20:05:23,001 root INFO adding license file 'LICENSE.txt' 2025-10-12 20:05:23,003 root INFO writing manifest file 'loky.egg-info/SOURCES.txt' 2025-10-12 20:05:23,004 root INFO Copying loky.egg-info to build/bdist.linux-x86_64/wheel/./loky-3.5.3-py3.12.egg-info 2025-10-12 20:05:23,005 root INFO running install_scripts 2025-10-12 20:05:23,006 root INFO creating build/bdist.linux-x86_64/wheel/loky-3.5.3.dist-info/WHEEL 2025-10-12 20:05:23,006 wheel INFO creating '/home/udu/aports/community/py3-loky/src/loky-3.5.3/.dist/.tmp-tzvmv3fn/loky-3.5.3-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it 2025-10-12 20:05:23,007 wheel INFO adding 'loky/__init__.py' 2025-10-12 20:05:23,007 wheel INFO adding 'loky/_base.py' 2025-10-12 20:05:23,007 wheel INFO adding 'loky/cloudpickle_wrapper.py' 2025-10-12 20:05:23,007 wheel INFO adding 'loky/initializers.py' 2025-10-12 20:05:23,008 wheel INFO adding 'loky/process_executor.py' 2025-10-12 20:05:23,008 wheel INFO adding 'loky/reusable_executor.py' 2025-10-12 20:05:23,008 wheel INFO adding 'loky/backend/__init__.py' 2025-10-12 20:05:23,008 wheel INFO adding 'loky/backend/_posix_reduction.py' 2025-10-12 20:05:23,008 wheel INFO adding 'loky/backend/_win_reduction.py' 2025-10-12 20:05:23,009 wheel INFO adding 'loky/backend/context.py' 2025-10-12 20:05:23,009 wheel INFO adding 'loky/backend/fork_exec.py' 2025-10-12 20:05:23,009 wheel INFO adding 'loky/backend/popen_loky_posix.py' 2025-10-12 20:05:23,009 wheel INFO adding 'loky/backend/popen_loky_win32.py' 2025-10-12 20:05:23,009 wheel INFO adding 'loky/backend/process.py' 2025-10-12 20:05:23,009 wheel INFO adding 'loky/backend/queues.py' 2025-10-12 20:05:23,010 wheel INFO adding 'loky/backend/reduction.py' 2025-10-12 20:05:23,010 wheel INFO adding 'loky/backend/resource_tracker.py' 2025-10-12 20:05:23,010 wheel INFO adding 'loky/backend/spawn.py' 2025-10-12 20:05:23,010 wheel INFO adding 'loky/backend/synchronize.py' 2025-10-12 20:05:23,010 wheel INFO adding 'loky/backend/utils.py' 2025-10-12 20:05:23,011 wheel INFO adding 'loky-3.5.3.dist-info/licenses/LICENSE.txt' 2025-10-12 20:05:23,011 wheel INFO adding 'loky-3.5.3.dist-info/METADATA' 2025-10-12 20:05:23,011 wheel INFO adding 'loky-3.5.3.dist-info/WHEEL' 2025-10-12 20:05:23,011 wheel INFO adding 'loky-3.5.3.dist-info/top_level.txt' 2025-10-12 20:05:23,011 wheel INFO adding 'loky-3.5.3.dist-info/RECORD' 2025-10-12 20:05:23,011 root INFO removing build/bdist.linux-x86_64/wheel 2025-10-12 20:05:23,012 gpep517 INFO The backend produced .dist/loky-3.5.3-py3-none-any.whl loky-3.5.3-py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.12.11, pytest-8.3.5, pluggy-1.5.0 -- /home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3 cachedir: .pytest_cache rootdir: /home/udu/aports/community/py3-loky/src/loky-3.5.3 configfile: pyproject.toml collecting ... collected 245 items / 5 deselected / 240 selected tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_isolated_pickler_dispatch_tables PASSED [ 0%] tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_serialization_function_from_main FAILED [ 0%] tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_serialization_class_from_main FAILED [ 1%] tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_cloudpickle_flag_wrapper FAILED [ 1%] tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_set_loky_pickler[None] FAILED [ 2%] tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_set_loky_pickler[''] FAILED [ 2%] tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_set_loky_pickler['cloudpickle'] FAILED [ 2%] tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_set_loky_pickler['pickle'] FAILED [ 3%] tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_set_loky_pickler_failures PASSED [ 3%] tests/test_futures.py::TestsFuture::test_done_callback_with_result PASSED [ 4%] tests/test_futures.py::TestsFuture::test_done_callback_with_exception PASSED [ 4%] tests/test_futures.py::TestsFuture::test_done_callback_with_cancel PASSED [ 5%] tests/test_futures.py::TestsFuture::test_done_callback_raises PASSED [ 5%] tests/test_futures.py::TestsFuture::test_done_callback_already_successful PASSED [ 5%] tests/test_futures.py::TestsFuture::test_done_callback_already_failed PASSED [ 6%] tests/test_futures.py::TestsFuture::test_done_callback_already_cancelled PASSED [ 6%] tests/test_futures.py::TestsFuture::test_repr PASSED [ 7%] tests/test_futures.py::TestsFuture::test_cancel PASSED [ 7%] tests/test_futures.py::TestsFuture::test_cancelled PASSED [ 7%] tests/test_futures.py::TestsFuture::test_done PASSED [ 8%] tests/test_futures.py::TestsFuture::test_running PASSED [ 8%] tests/test_futures.py::TestsFuture::test_result_with_timeout PASSED [ 9%] tests/test_futures.py::TestsFuture::test_result_with_success PASSED [ 9%] tests/test_futures.py::TestsFuture::test_result_with_cancel PASSED [ 10%] tests/test_futures.py::TestsFuture::test_exception_with_timeout PASSED [ 10%] tests/test_futures.py::TestsFuture::test_exception_with_success PASSED [ 10%] tests/test_loky_backend.py::TestLokyBackend::test_current PASSED [ 11%] tests/test_loky_backend.py::TestLokyBackend::test_daemon_argument PASSED [ 11%] tests/test_loky_backend.py::TestLokyBackend::test_process[loky] FAILED [ 12%] tests/test_loky_backend.py::TestLokyBackend::test_process[loky_init_main] FAILED [ 12%] tests/test_loky_backend.py::TestLokyBackend::test_socket PASSED [ 12%] tests/test_loky_backend.py::TestLokyBackend::test_socket_queue FAILED [ 13%] tests/test_loky_backend.py::TestLokyBackend::test_connection PASSED [ 13%] tests/test_loky_backend.py::TestLokyBackend::test_connection_queue FAILED [ 14%] tests/test_loky_backend.py::TestLokyBackend::test_child_env_process FAILED [ 14%] tests/test_loky_backend.py::TestLokyBackend::test_terminate PASSED [ 15%] tests/test_loky_backend.py::TestLokyBackend::test_active_children PASSED [ 15%] tests/test_loky_backend.py::TestLokyBackend::test_recursion PASSED [ 15%] tests/test_loky_backend.py::TestLokyBackend::test_sentinel FAILED [ 16%] tests/test_loky_backend.py::TestLokyBackend::test_wait_sentinel PASSED [ 16%] tests/test_loky_backend.py::TestLokyBackend::test_compatibility_openmp SKIPPED [ 17%] tests/test_loky_backend.py::TestLokyBackend::test_interactively_define_process_no_main[True] PASSED [ 17%] tests/test_loky_backend.py::TestLokyBackend::test_interactively_define_process_no_main[False] PASSED [ 17%] tests/test_loky_backend.py::TestLokyBackend::test_interactively_define_process_fail_main PASSED [ 18%] tests/test_loky_backend.py::TestLokyBackend::test_loky_get_context PASSED [ 18%] tests/test_loky_backend.py::TestLokyBackend::test_interactive_contex_no_main PASSED [ 19%] tests/test_loky_backend.py::test_default_subcontext[loky] FAILED [ 19%] tests/test_loky_backend.py::test_default_subcontext[loky_init_main] FAILED [ 20%] tests/test_loky_backend.py::test_default_subcontext[spawn] FAILED [ 20%] tests/test_loky_backend.py::test_default_subcontext[fork] FAILED [ 20%] tests/test_loky_backend.py::test_default_subcontext[forkserver] FAILED [ 21%] tests/test_loky_module.py::test_version PASSED [ 21%] tests/test_loky_module.py::test_cpu_count PASSED [ 22%] tests/test_loky_module.py::test_windows_max_cpu_count SKIPPED (Windo...) [ 22%] tests/test_loky_module.py::test_cpu_count_os_sched_getaffinity SKIPPED [ 22%] tests/test_loky_module.py::test_cpu_count_psutil_affinity FAILED [ 23%] tests/test_loky_module.py::test_only_physical_cores_error PASSED [ 23%] tests/test_loky_module.py::test_only_physical_cores_with_user_limitation PASSED [ 24%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_run_after_shutdown ERROR [ 24%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_with_pickle_error ERROR [ 25%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_with_sys_exit_at_pickle ERROR [ 25%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_interpreter_shutdown ERROR [ 25%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_hang_issue12364 ERROR [ 26%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_processes_terminate ERROR [ 26%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_processes_terminate_on_executor_gc ERROR [ 27%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_processes_crash_handling_after_executor_gc ERROR [ 27%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_context_manager_shutdown ERROR [ 27%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_del_shutdown ERROR [ 28%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_no_wait ERROR [ 28%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_deadlock_pickle ERROR [ 29%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_hang_issue39205 ERROR [ 29%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_and_kill_workers ERROR [ 30%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_completed ERROR [ 30%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_completed_some_already_completed ERROR [ 30%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_exception ERROR [ 31%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_exception_some_already_complete ERROR [ 31%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_exception_one_already_failed ERROR [ 32%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_all_completed ERROR [ 32%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_timeout ERROR [ 32%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverAsCompleted::test_no_timeout ERROR [ 33%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverAsCompleted::test_zero_timeout ERROR [ 33%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverAsCompleted::test_duplicate_futures ERROR [ 34%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_submit ERROR [ 34%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_submit_keyword ERROR [ 35%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_map ERROR [ 35%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_map_exception ERROR [ 35%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_map_timeout ERROR [ 36%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_shutdown_race_issue12456 ERROR [ 36%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_no_stale_references ERROR [ 37%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_max_workers_negative ERROR [ 37%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_killed_child ERROR [ 37%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_map_chunksize ERROR [ 38%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_traceback ERROR [ 38%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_thread_safety ERROR [ 39%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_submit_from_callback ERROR [ 39%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_worker_timeout ERROR [ 40%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_serialization ERROR [ 40%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_max_depth[True] ERROR [ 40%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_max_depth[False] ERROR [ 41%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_no_failure_on_large_data_send ERROR [ 41%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_expected_failure_on_large_data_send SKIPPED [ 42%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_memory_leak_protection ERROR [ 42%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_reference_cycle_collection ERROR [ 42%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_exited_child ERROR [ 43%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_child_env_executor ERROR [ 43%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_viztracer_profiler ERROR [ 44%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_viztracer_profiler_with_custom_init ERROR [ 44%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_exception_cause_with_tblib ERROR [ 45%] tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_no_deprecation_warning_is_raised_on_fork ERROR [ 45%] tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_run_after_shutdown ERROR [ 45%] tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_with_pickle_error ERROR [ 46%] tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_with_sys_exit_at_pickle ERROR [ 46%] tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_interpreter_shutdown ERROR [ 47%] tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_hang_issue12364 ERROR [ 47%] tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_processes_terminate ERROR [ 47%] tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_processes_terminate_on_executor_gc ERROR [ 48%] tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_processes_crash_handling_after_executor_gc ERROR [ 48%] tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_context_manager_shutdown ERROR [ 49%] tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_del_shutdown ERROR [ 49%] tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_no_wait ERROR [ 50%] tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_deadlock_pickle ERROR [ 50%] tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_hang_issue39205 ERROR [ 50%] tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_and_kill_workers ERROR [ 51%] tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_completed ERROR [ 51%] tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_completed_some_already_completed ERROR [ 52%] tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_exception ERROR [ 52%] tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_exception_some_already_complete ERROR [ 52%] tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_exception_one_already_failed ERROR [ 53%] tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_all_completed ERROR [ 53%] tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_timeout ERROR [ 54%] tests/test_process_executor_loky.py::TestsProcessPoolLokyAsCompleted::test_no_timeout ERROR [ 54%] tests/test_process_executor_loky.py::TestsProcessPoolLokyAsCompleted::test_zero_timeout ERROR [ 55%] tests/test_process_executor_loky.py::TestsProcessPoolLokyAsCompleted::test_duplicate_futures ERROR [ 55%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_submit ERROR [ 55%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_submit_keyword ERROR [ 56%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_map ERROR [ 56%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_map_exception ERROR [ 57%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_map_timeout ERROR [ 57%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_shutdown_race_issue12456 ERROR [ 57%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_no_stale_references ERROR [ 58%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_max_workers_negative ERROR [ 58%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_killed_child ERROR [ 59%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_map_chunksize ERROR [ 59%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_traceback ERROR [ 60%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_thread_safety ERROR [ 60%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_submit_from_callback ERROR [ 60%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_worker_timeout ERROR [ 61%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_serialization ERROR [ 61%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_max_depth[True] ERROR [ 62%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_max_depth[False] ERROR [ 62%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_no_failure_on_large_data_send ERROR [ 62%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_expected_failure_on_large_data_send SKIPPED [ 63%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_memory_leak_protection ERROR [ 63%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_reference_cycle_collection ERROR [ 64%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_exited_child ERROR [ 64%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_child_env_executor ERROR [ 65%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_viztracer_profiler ERROR [ 65%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_viztracer_profiler_with_custom_init ERROR [ 65%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_exception_cause_with_tblib ERROR [ 66%] tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_no_deprecation_warning_is_raised_on_fork ERROR [ 66%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_run_after_shutdown ERROR [ 67%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_with_pickle_error ERROR [ 67%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_with_sys_exit_at_pickle ERROR [ 67%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_interpreter_shutdown ERROR [ 68%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_hang_issue12364 ERROR [ 68%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_processes_terminate ERROR [ 69%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_processes_terminate_on_executor_gc ERROR [ 69%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_processes_crash_handling_after_executor_gc ERROR [ 70%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_context_manager_shutdown ERROR [ 70%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_del_shutdown ERROR [ 70%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_no_wait ERROR [ 71%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_deadlock_pickle ERROR [ 71%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_hang_issue39205 ERROR [ 72%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_and_kill_workers ERROR [ 72%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_completed ERROR [ 72%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_completed_some_already_completed ERROR [ 73%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_exception ERROR [ 73%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_exception_some_already_complete ERROR [ 74%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_exception_one_already_failed ERROR [ 74%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_all_completed ERROR [ 75%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_timeout ERROR [ 75%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnAsCompleted::test_no_timeout ERROR [ 75%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnAsCompleted::test_zero_timeout ERROR [ 76%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnAsCompleted::test_duplicate_futures ERROR [ 76%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_submit ERROR [ 77%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_submit_keyword ERROR [ 77%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_map ERROR [ 77%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_map_exception ERROR [ 78%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_map_timeout ERROR [ 78%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_shutdown_race_issue12456 ERROR [ 79%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_no_stale_references ERROR [ 79%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_max_workers_negative ERROR [ 80%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_killed_child ERROR [ 80%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_map_chunksize ERROR [ 80%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_traceback ERROR [ 81%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_thread_safety ERROR [ 81%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_submit_from_callback ERROR [ 82%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_worker_timeout ERROR [ 82%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_serialization ERROR [ 82%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_max_depth[True] ERROR [ 83%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_max_depth[False] ERROR [ 83%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_no_failure_on_large_data_send ERROR [ 84%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_expected_failure_on_large_data_send SKIPPED [ 84%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_memory_leak_protection ERROR [ 85%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_reference_cycle_collection ERROR [ 85%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_exited_child ERROR [ 85%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_child_env_executor ERROR [ 86%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_viztracer_profiler ERROR [ 86%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_viztracer_profiler_with_custom_init ERROR [ 87%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_exception_cause_with_tblib ERROR [ 87%] tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_no_deprecation_warning_is_raised_on_fork ERROR [ 87%] tests/test_resource_tracker.py::TestResourceTracker::test_resource_utils[file] PASSED [ 88%] tests/test_resource_tracker.py::TestResourceTracker::test_resource_utils[folder] PASSED [ 88%] tests/test_resource_tracker.py::TestResourceTracker::test_resource_utils[semlock] FAILED [ 89%] tests/test_resource_tracker.py::TestResourceTracker::test_child_retrieves_resource_tracker FAILED [ 89%] tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker[file] PASSED [ 90%] tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker[folder] PASSED [ 90%] tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker[semlock] FAILED [ 90%] tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker_refcounting[file] PASSED [ 91%] tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker_refcounting[folder] PASSED [ 91%] tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker_refcounting[semlock] FAILED [ 92%] tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker_sigint FAILED [ 92%] tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker_sigterm FAILED [ 92%] tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker_sigkill FAILED [ 93%] tests/test_resource_tracker.py::TestResourceTracker::test_loky_process_inherit_multiprocessing_resource_tracker FAILED [ 93%] tests/test_synchronize.py::test_semlock_failure FAILED [ 94%] tests/test_synchronize.py::TestLock::test_lock FAILED [ 94%] tests/test_synchronize.py::TestLock::test_rlock FAILED [ 95%] tests/test_synchronize.py::TestLock::test_lock_context FAILED [ 95%] tests/test_synchronize.py::TestSemaphore::test_semaphore FAILED [ 95%] tests/test_synchronize.py::TestSemaphore::test_bounded_semaphore FAILED [ 96%] tests/test_synchronize.py::TestSemaphore::test_timeout FAILED [ 96%] tests/test_synchronize.py::TestCondition::test_notify FAILED [ 97%] tests/test_synchronize.py::TestCondition::test_notify_all FAILED [ 97%] tests/test_synchronize.py::TestCondition::test_timeout FAILED [ 97%] tests/test_synchronize.py::TestCondition::test_waitfor FAILED [ 98%] tests/test_synchronize.py::TestEvent::test_event FAILED [ 98%] tests/test_worker_timeout.py::TestTimeoutExecutor::test_worker_timeout_mock FAILED [ 99%] tests/test_worker_timeout.py::TestTimeoutExecutor::test_worker_timeout_with_slowly_pickling_objects FAILED [ 99%] tests/test_worker_timeout.py::TestTimeoutExecutor::test_worker_timeout_shutdown_no_deadlock FAILED [100%] ==================================== ERRORS ==================================== _ ERROR at setup of TestsProcessPoolForkserverShutdown.test_run_after_shutdown _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ---------------------------- Captured stdout setup ----------------------------- setup class with _ ERROR at setup of TestsProcessPoolForkserverShutdown.test_shutdown_with_pickle_error _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverShutdown.test_shutdown_with_sys_exit_at_pickle _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverShutdown.test_interpreter_shutdown _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError __ ERROR at setup of TestsProcessPoolForkserverShutdown.test_hang_issue12364 ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverShutdown.test_processes_terminate _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverShutdown.test_processes_terminate_on_executor_gc _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverShutdown.test_processes_crash_handling_after_executor_gc _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverShutdown.test_context_manager_shutdown _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ____ ERROR at setup of TestsProcessPoolForkserverShutdown.test_del_shutdown ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError __ ERROR at setup of TestsProcessPoolForkserverShutdown.test_shutdown_no_wait __ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverShutdown.test_shutdown_deadlock_pickle _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError __ ERROR at setup of TestsProcessPoolForkserverShutdown.test_hang_issue39205 ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverShutdown.test_shutdown_and_kill_workers _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ____ ERROR at setup of TestsProcessPoolForkserverWait.test_first_completed _____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ---------------------------- Captured stdout setup ----------------------------- setup class with _ ERROR at setup of TestsProcessPoolForkserverWait.test_first_completed_some_already_completed _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ____ ERROR at setup of TestsProcessPoolForkserverWait.test_first_exception _____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverWait.test_first_exception_some_already_complete _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverWait.test_first_exception_one_already_failed _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _____ ERROR at setup of TestsProcessPoolForkserverWait.test_all_completed ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ________ ERROR at setup of TestsProcessPoolForkserverWait.test_timeout _________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ___ ERROR at setup of TestsProcessPoolForkserverAsCompleted.test_no_timeout ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ---------------------------- Captured stdout setup ----------------------------- setup class with __ ERROR at setup of TestsProcessPoolForkserverAsCompleted.test_zero_timeout ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverAsCompleted.test_duplicate_futures _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _______ ERROR at setup of TestsProcessPoolForkserverExecutor.test_submit _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ---------------------------- Captured stdout setup ----------------------------- setup class with ___ ERROR at setup of TestsProcessPoolForkserverExecutor.test_submit_keyword ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ________ ERROR at setup of TestsProcessPoolForkserverExecutor.test_map _________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ___ ERROR at setup of TestsProcessPoolForkserverExecutor.test_map_exception ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ____ ERROR at setup of TestsProcessPoolForkserverExecutor.test_map_timeout _____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverExecutor.test_shutdown_race_issue12456 _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverExecutor.test_no_stale_references _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverExecutor.test_max_workers_negative _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ____ ERROR at setup of TestsProcessPoolForkserverExecutor.test_killed_child ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ___ ERROR at setup of TestsProcessPoolForkserverExecutor.test_map_chunksize ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _____ ERROR at setup of TestsProcessPoolForkserverExecutor.test_traceback ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ___ ERROR at setup of TestsProcessPoolForkserverExecutor.test_thread_safety ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverExecutor.test_submit_from_callback _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ___ ERROR at setup of TestsProcessPoolForkserverExecutor.test_worker_timeout ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ___ ERROR at setup of TestsProcessPoolForkserverExecutor.test_serialization ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError __ ERROR at setup of TestsProcessPoolForkserverExecutor.test_max_depth[True] ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError __ ERROR at setup of TestsProcessPoolForkserverExecutor.test_max_depth[False] __ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverExecutor.test_no_failure_on_large_data_send _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverExecutor.test_memory_leak_protection _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverExecutor.test_reference_cycle_collection _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ____ ERROR at setup of TestsProcessPoolForkserverExecutor.test_exited_child ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverExecutor.test_child_env_executor _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverExecutor.test_viztracer_profiler _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverExecutor.test_viztracer_profiler_with_custom_init _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverExecutor.test_exception_cause_with_tblib _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolForkserverExecutor.test_no_deprecation_warning_is_raised_on_fork _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ____ ERROR at setup of TestsProcessPoolLokyShutdown.test_run_after_shutdown ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ---------------------------- Captured stdout setup ----------------------------- setup class with _ ERROR at setup of TestsProcessPoolLokyShutdown.test_shutdown_with_pickle_error _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _ ERROR at setup of TestsProcessPoolLokyShutdown.test_shutdown_with_sys_exit_at_pickle _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ___ ERROR at setup of TestsProcessPoolLokyShutdown.test_interpreter_shutdown ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _____ ERROR at setup of TestsProcessPoolLokyShutdown.test_hang_issue12364 ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ___ ERROR at setup of TestsProcessPoolLokyShutdown.test_processes_terminate ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _ ERROR at setup of TestsProcessPoolLokyShutdown.test_processes_terminate_on_executor_gc _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _ ERROR at setup of TestsProcessPoolLokyShutdown.test_processes_crash_handling_after_executor_gc _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _ ERROR at setup of TestsProcessPoolLokyShutdown.test_context_manager_shutdown _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _______ ERROR at setup of TestsProcessPoolLokyShutdown.test_del_shutdown _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _____ ERROR at setup of TestsProcessPoolLokyShutdown.test_shutdown_no_wait _____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _ ERROR at setup of TestsProcessPoolLokyShutdown.test_shutdown_deadlock_pickle _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _____ ERROR at setup of TestsProcessPoolLokyShutdown.test_hang_issue39205 ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _ ERROR at setup of TestsProcessPoolLokyShutdown.test_shutdown_and_kill_workers _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _______ ERROR at setup of TestsProcessPoolLokyWait.test_first_completed ________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ---------------------------- Captured stdout setup ----------------------------- setup class with _ ERROR at setup of TestsProcessPoolLokyWait.test_first_completed_some_already_completed _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _______ ERROR at setup of TestsProcessPoolLokyWait.test_first_exception ________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _ ERROR at setup of TestsProcessPoolLokyWait.test_first_exception_some_already_complete _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _ ERROR at setup of TestsProcessPoolLokyWait.test_first_exception_one_already_failed _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ________ ERROR at setup of TestsProcessPoolLokyWait.test_all_completed _________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ___________ ERROR at setup of TestsProcessPoolLokyWait.test_timeout ____________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ______ ERROR at setup of TestsProcessPoolLokyAsCompleted.test_no_timeout _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ---------------------------- Captured stdout setup ----------------------------- setup class with _____ ERROR at setup of TestsProcessPoolLokyAsCompleted.test_zero_timeout ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ___ ERROR at setup of TestsProcessPoolLokyAsCompleted.test_duplicate_futures ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError __________ ERROR at setup of TestsProcessPoolLokyExecutor.test_submit __________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ---------------------------- Captured stdout setup ----------------------------- setup class with ______ ERROR at setup of TestsProcessPoolLokyExecutor.test_submit_keyword ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ___________ ERROR at setup of TestsProcessPoolLokyExecutor.test_map ____________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ______ ERROR at setup of TestsProcessPoolLokyExecutor.test_map_exception _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _______ ERROR at setup of TestsProcessPoolLokyExecutor.test_map_timeout ________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _ ERROR at setup of TestsProcessPoolLokyExecutor.test_shutdown_race_issue12456 _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ___ ERROR at setup of TestsProcessPoolLokyExecutor.test_no_stale_references ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ___ ERROR at setup of TestsProcessPoolLokyExecutor.test_max_workers_negative ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _______ ERROR at setup of TestsProcessPoolLokyExecutor.test_killed_child _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ______ ERROR at setup of TestsProcessPoolLokyExecutor.test_map_chunksize _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ________ ERROR at setup of TestsProcessPoolLokyExecutor.test_traceback _________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ______ ERROR at setup of TestsProcessPoolLokyExecutor.test_thread_safety _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ___ ERROR at setup of TestsProcessPoolLokyExecutor.test_submit_from_callback ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ______ ERROR at setup of TestsProcessPoolLokyExecutor.test_worker_timeout ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ______ ERROR at setup of TestsProcessPoolLokyExecutor.test_serialization _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _____ ERROR at setup of TestsProcessPoolLokyExecutor.test_max_depth[True] ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _____ ERROR at setup of TestsProcessPoolLokyExecutor.test_max_depth[False] _____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _ ERROR at setup of TestsProcessPoolLokyExecutor.test_no_failure_on_large_data_send _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError __ ERROR at setup of TestsProcessPoolLokyExecutor.test_memory_leak_protection __ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _ ERROR at setup of TestsProcessPoolLokyExecutor.test_reference_cycle_collection _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _______ ERROR at setup of TestsProcessPoolLokyExecutor.test_exited_child _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ____ ERROR at setup of TestsProcessPoolLokyExecutor.test_child_env_executor ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ____ ERROR at setup of TestsProcessPoolLokyExecutor.test_viztracer_profiler ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _ ERROR at setup of TestsProcessPoolLokyExecutor.test_viztracer_profiler_with_custom_init _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _ ERROR at setup of TestsProcessPoolLokyExecutor.test_exception_cause_with_tblib _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _ ERROR at setup of TestsProcessPoolLokyExecutor.test_no_deprecation_warning_is_raised_on_fork _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ___ ERROR at setup of TestsProcessPoolSpawnShutdown.test_run_after_shutdown ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ---------------------------- Captured stdout setup ----------------------------- setup class with _ ERROR at setup of TestsProcessPoolSpawnShutdown.test_shutdown_with_pickle_error _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnShutdown.test_shutdown_with_sys_exit_at_pickle _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError __ ERROR at setup of TestsProcessPoolSpawnShutdown.test_interpreter_shutdown ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _____ ERROR at setup of TestsProcessPoolSpawnShutdown.test_hang_issue12364 _____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ___ ERROR at setup of TestsProcessPoolSpawnShutdown.test_processes_terminate ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnShutdown.test_processes_terminate_on_executor_gc _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnShutdown.test_processes_crash_handling_after_executor_gc _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnShutdown.test_context_manager_shutdown _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ______ ERROR at setup of TestsProcessPoolSpawnShutdown.test_del_shutdown _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ____ ERROR at setup of TestsProcessPoolSpawnShutdown.test_shutdown_no_wait _____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnShutdown.test_shutdown_deadlock_pickle _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _____ ERROR at setup of TestsProcessPoolSpawnShutdown.test_hang_issue39205 _____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnShutdown.test_shutdown_and_kill_workers _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _______ ERROR at setup of TestsProcessPoolSpawnWait.test_first_completed _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ---------------------------- Captured stdout setup ----------------------------- setup class with _ ERROR at setup of TestsProcessPoolSpawnWait.test_first_completed_some_already_completed _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _______ ERROR at setup of TestsProcessPoolSpawnWait.test_first_exception _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnWait.test_first_exception_some_already_complete _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnWait.test_first_exception_one_already_failed _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ________ ERROR at setup of TestsProcessPoolSpawnWait.test_all_completed ________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ___________ ERROR at setup of TestsProcessPoolSpawnWait.test_timeout ___________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ______ ERROR at setup of TestsProcessPoolSpawnAsCompleted.test_no_timeout ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ---------------------------- Captured stdout setup ----------------------------- setup class with _____ ERROR at setup of TestsProcessPoolSpawnAsCompleted.test_zero_timeout _____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError __ ERROR at setup of TestsProcessPoolSpawnAsCompleted.test_duplicate_futures ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _________ ERROR at setup of TestsProcessPoolSpawnExecutor.test_submit __________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ---------------------------- Captured stdout setup ----------------------------- setup class with _____ ERROR at setup of TestsProcessPoolSpawnExecutor.test_submit_keyword ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ___________ ERROR at setup of TestsProcessPoolSpawnExecutor.test_map ___________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ______ ERROR at setup of TestsProcessPoolSpawnExecutor.test_map_exception ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _______ ERROR at setup of TestsProcessPoolSpawnExecutor.test_map_timeout _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnExecutor.test_shutdown_race_issue12456 _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ___ ERROR at setup of TestsProcessPoolSpawnExecutor.test_no_stale_references ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError __ ERROR at setup of TestsProcessPoolSpawnExecutor.test_max_workers_negative ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ______ ERROR at setup of TestsProcessPoolSpawnExecutor.test_killed_child _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ______ ERROR at setup of TestsProcessPoolSpawnExecutor.test_map_chunksize ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ________ ERROR at setup of TestsProcessPoolSpawnExecutor.test_traceback ________ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ______ ERROR at setup of TestsProcessPoolSpawnExecutor.test_thread_safety ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError __ ERROR at setup of TestsProcessPoolSpawnExecutor.test_submit_from_callback ___ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _____ ERROR at setup of TestsProcessPoolSpawnExecutor.test_worker_timeout ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ______ ERROR at setup of TestsProcessPoolSpawnExecutor.test_serialization ______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _____ ERROR at setup of TestsProcessPoolSpawnExecutor.test_max_depth[True] _____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ____ ERROR at setup of TestsProcessPoolSpawnExecutor.test_max_depth[False] _____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnExecutor.test_no_failure_on_large_data_send _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnExecutor.test_memory_leak_protection __ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnExecutor.test_reference_cycle_collection _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ______ ERROR at setup of TestsProcessPoolSpawnExecutor.test_exited_child _______ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ___ ERROR at setup of TestsProcessPoolSpawnExecutor.test_child_env_executor ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ___ ERROR at setup of TestsProcessPoolSpawnExecutor.test_viztracer_profiler ____ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnExecutor.test_viztracer_profiler_with_custom_init _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnExecutor.test_exception_cause_with_tblib _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError _ ERROR at setup of TestsProcessPoolSpawnExecutor.test_no_deprecation_warning_is_raised_on_fork _ cls = @classmethod def setup_class(cls): print(f"setup class with {cls.context}") global _test_event if _test_event is None: > _test_event = cls.context.Event() tests/_executor_mixin.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError =================================== FAILURES =================================== _________ TestCloudpickleWrapper.test_serialization_function_from_main _________ self = def test_serialization_function_from_main(self): # check that the init_main_module parameter works properly # when using -c option, we don't need the safeguard if __name__ .. # and thus test LokyProcess without the extra argument. For running # a script, it is necessary to use init_main_module=False. code = """if True: from loky import get_reusable_executor def test_func(x): pass e = get_reusable_executor() e.submit(test_func, 42).result() print("ok") """ cmd = [sys.executable] try: fid, filename = mkstemp(suffix="_joblib.py") os.close(fid) with open(filename, mode="w") as f: f.write(code) cmd += [filename] > check_subprocess_call(cmd, stdout_regex="ok", timeout=10) tests/test_cloudpickle_wrapper.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '/tmp/tmpfx7sn3lv_joblib.py'] timeout = 10, stdout_regex = 'ok', stderr_regex = None, env = None def check_subprocess_call( cmd, timeout=1, stdout_regex=None, stderr_regex=None, env=None ): """Runs a command in a subprocess with timeout in seconds. Also checks returncode is zero, stdout if stdout_regex is set, and stderr if stderr_regex is set. """ if env is not None: env = {**os.environ, **env} proc = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, text=True ) def kill_process(): warnings.warn(f"Timeout running {cmd}") proc.kill() timer = threading.Timer(timeout, kill_process) try: timer.start() stdout, stderr = proc.communicate() if proc.returncode == -9: message = ( f"Subprocess timeout after {timeout}s.\nStdout:\n{stdout}\n" f"Stderr:\n{stderr}" ) raise TimeoutError(message) elif proc.returncode != 0: message = ( f"Non-zero return code: {proc.returncode}.\nStdout:\n{stdout}" f"\nStderr:\n{stderr}" ) > raise ValueError(message) E ValueError: Non-zero return code: 1. E Stdout: E E Stderr: E Traceback (most recent call last): E File "/tmp/tmpfx7sn3lv_joblib.py", line 7, in E e = get_reusable_executor() E ^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 89, in get_reusable_executor E _executor, _ = _ReusablePoolExecutor.get_reusable_executor( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 182, in get_reusable_executor E _executor = executor = cls( E ^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 118, in __init__ E super().__init__( E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/process_executor.py", line 1139, in __init__ E self._processes_management_lock = self._context.Lock() E ^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/context.py", line 362, in Lock E return Lock() E ^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 192, in __init__ E super().__init__(SEMAPHORE, 1, 1) E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 72, in __init__ E self._semlock = _SemLock( E ^^^^^^^^^ E PermissionError: [Errno 13] Permission denied tests/utils.py:153: ValueError __________ TestCloudpickleWrapper.test_serialization_class_from_main ___________ self = def test_serialization_class_from_main(self): # check that the init_main_module parameter works properly # when using -c option, we don't need the safeguard if __name__ .. # and thus test LokyProcess without the extra argument. For running # a script, it is necessary to use init_main_module=False. code = """if True: from loky import get_reusable_executor class Test: def __init__(self, x=42): self.x = x def test_func(self, x): return 42 def pass_all(*args, **kwargs): pass e = get_reusable_executor() e.submit(pass_all, Test()).result() e.submit(pass_all, x=Test()).result() e.submit(pass_all, 1, 2, a=0, x=Test()).result() assert e.submit(Test().test_func, 0).result() == 42 print("ok") """ cmd = [sys.executable] try: fid, filename = mkstemp(suffix="_joblib.py") os.close(fid) with open(filename, mode="w") as f: f.write(code) cmd += [filename] > check_subprocess_call(cmd, stdout_regex="ok", timeout=10) tests/test_cloudpickle_wrapper.py:110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '/tmp/tmpyu4wohas_joblib.py'] timeout = 10, stdout_regex = 'ok', stderr_regex = None, env = None def check_subprocess_call( cmd, timeout=1, stdout_regex=None, stderr_regex=None, env=None ): """Runs a command in a subprocess with timeout in seconds. Also checks returncode is zero, stdout if stdout_regex is set, and stderr if stderr_regex is set. """ if env is not None: env = {**os.environ, **env} proc = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, text=True ) def kill_process(): warnings.warn(f"Timeout running {cmd}") proc.kill() timer = threading.Timer(timeout, kill_process) try: timer.start() stdout, stderr = proc.communicate() if proc.returncode == -9: message = ( f"Subprocess timeout after {timeout}s.\nStdout:\n{stdout}\n" f"Stderr:\n{stderr}" ) raise TimeoutError(message) elif proc.returncode != 0: message = ( f"Non-zero return code: {proc.returncode}.\nStdout:\n{stdout}" f"\nStderr:\n{stderr}" ) > raise ValueError(message) E ValueError: Non-zero return code: 1. E Stdout: E E Stderr: E Traceback (most recent call last): E File "/tmp/tmpyu4wohas_joblib.py", line 14, in E e = get_reusable_executor() E ^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 89, in get_reusable_executor E _executor, _ = _ReusablePoolExecutor.get_reusable_executor( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 182, in get_reusable_executor E _executor = executor = cls( E ^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 118, in __init__ E super().__init__( E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/process_executor.py", line 1139, in __init__ E self._processes_management_lock = self._context.Lock() E ^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/context.py", line 362, in Lock E return Lock() E ^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 192, in __init__ E super().__init__(SEMAPHORE, 1, 1) E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 72, in __init__ E self._semlock = _SemLock( E ^^^^^^^^^ E PermissionError: [Errno 13] Permission denied tests/utils.py:153: ValueError _____________ TestCloudpickleWrapper.test_cloudpickle_flag_wrapper _____________ self = def test_cloudpickle_flag_wrapper(self): # check that the wrap_non_picklable_objects works properly on functions # and classes. code = """if True: import pytest from loky import get_reusable_executor from loky.cloudpickle_wrapper import wrap_non_picklable_objects @wrap_non_picklable_objects def test_func(x): return x @wrap_non_picklable_objects class Test: def __init__(self): self.x = 42 def return_func(self): return self.x test_obj = Test() # Make sure the function and object behave correctly assert test_obj.x == 42 assert test_func(42) == 42 assert test_obj.return_func() == 42 assert test_func(test_obj.return_func)() == 42 # Make sure the wrapper do not make the object callable with pytest.raises(TypeError, match="'Test' object is not callable"): test_obj() assert not callable(test_obj) # Make sure it is picklable even when the executor does not rely on # cloudpickle. e = get_reusable_executor() result_obj = e.submit(test_func, 42).result() result_obj = e.submit(id, test_obj).result() result_obj = e.submit(test_func, test_obj).result() assert result_obj.return_func() == 42 print("ok") """ cmd = [sys.executable] try: fid, filename = mkstemp(suffix="_joblib.py") os.close(fid) with open(filename, mode="w") as f: f.write(code) cmd += [filename] env = {"LOKY_PICKLER": "pickle"} > check_subprocess_call(cmd, stdout_regex="ok", timeout=10, env=env) tests/test_cloudpickle_wrapper.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '/tmp/tmphvgdhlt0_joblib.py'] timeout = 10, stdout_regex = 'ok', stderr_regex = None env = {'ABUILD_LAST_COMMIT': '', 'BUILDCC': 'cc', 'BUILDCFLAGS': '-Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt', 'BUILDCPPFLAGS': '', ...} def check_subprocess_call( cmd, timeout=1, stdout_regex=None, stderr_regex=None, env=None ): """Runs a command in a subprocess with timeout in seconds. Also checks returncode is zero, stdout if stdout_regex is set, and stderr if stderr_regex is set. """ if env is not None: env = {**os.environ, **env} proc = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, text=True ) def kill_process(): warnings.warn(f"Timeout running {cmd}") proc.kill() timer = threading.Timer(timeout, kill_process) try: timer.start() stdout, stderr = proc.communicate() if proc.returncode == -9: message = ( f"Subprocess timeout after {timeout}s.\nStdout:\n{stdout}\n" f"Stderr:\n{stderr}" ) raise TimeoutError(message) elif proc.returncode != 0: message = ( f"Non-zero return code: {proc.returncode}.\nStdout:\n{stdout}" f"\nStderr:\n{stderr}" ) > raise ValueError(message) E ValueError: Non-zero return code: 1. E Stdout: E E Stderr: E Traceback (most recent call last): E File "/tmp/tmphvgdhlt0_joblib.py", line 34, in E e = get_reusable_executor() E ^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 89, in get_reusable_executor E _executor, _ = _ReusablePoolExecutor.get_reusable_executor( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 182, in get_reusable_executor E _executor = executor = cls( E ^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 118, in __init__ E super().__init__( E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/process_executor.py", line 1139, in __init__ E self._processes_management_lock = self._context.Lock() E ^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/context.py", line 362, in Lock E return Lock() E ^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 192, in __init__ E super().__init__(SEMAPHORE, 1, 1) E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 72, in __init__ E self._semlock = _SemLock( E ^^^^^^^^^ E PermissionError: [Errno 13] Permission denied tests/utils.py:153: ValueError ______________ TestCloudpickleWrapper.test_set_loky_pickler[None] ______________ self = loky_pickler = None @pytest.mark.parametrize( "loky_pickler", [None, "''", "'cloudpickle'", "'pickle'"] ) def test_set_loky_pickler(self, loky_pickler): # Test that the function set_loky_pickler correctly changes the pickler # used in loky. code = f"""if True: from loky import set_loky_pickler from loky import get_reusable_executor from loky import wrap_non_picklable_objects from loky.backend.reduction import get_loky_pickler from loky.backend.reduction import get_loky_pickler_name from pickle import Pickler from cloudpickle import CloudPickler # Check the default loky_pickler is cloudpickle current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == 'cloudpickle', ( f"default got loky_pickler={{current_loky_pickler_name}}" ) assert issubclass(get_loky_pickler(), CloudPickler) # Check that setting loky pickler to a value is working loky_pickler = {loky_pickler} set_loky_pickler(loky_pickler) if loky_pickler in [None, '', 'cloudpickle']: expected_loky_pickler = CloudPickler expected_loky_pickler_name = 'cloudpickle' elif loky_pickler == 'pickle': expected_loky_pickler = Pickler expected_loky_pickler_name = 'pickle' else: raise RuntimeError( f"unexpected value {{loky_pickler}} for loky_pickler") current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == expected_loky_pickler_name, ( f"Expected 'pickle' and got {{current_loky_pickler_name}}") assert issubclass(get_loky_pickler(), expected_loky_pickler) # Make sure that the default behavior is restored when # set_loky_pickler is used without arguments set_loky_pickler() current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == 'cloudpickle', ( f"default got loky_pickler={{current_loky_pickler_name}}") assert issubclass(get_loky_pickler(), CloudPickler) # Check that the loky pickler in the workers is the correct one. set_loky_pickler(loky_pickler) e = get_reusable_executor() worker_loky_pickler = e.submit(get_loky_pickler_name).result() assert worker_loky_pickler == expected_loky_pickler_name, ( f"expected {{loky_pickler}} " f"but got {{worker_loky_pickler}} for the worker loky pickler" ) # Check that for cloudpickle, this does not fail and for pickle, it # fails with the correct Error. def test_func(x): return x e = get_reusable_executor() assert e.submit(test_func, 42).result() == 42 print("ok") """ cmd = [sys.executable] try: fid, filename = mkstemp(suffix="_joblib.py") os.close(fid) with open(filename, mode="w") as f: f.write(code) cmd += [filename] if loky_pickler == "'pickle'": match = "(Can't get|has no) attribute 'test_func'" with pytest.raises(ValueError, match=match): check_subprocess_call(cmd, timeout=10) else: > check_subprocess_call(cmd, stdout_regex="ok", timeout=10) tests/test_cloudpickle_wrapper.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '/tmp/tmpvgqfoyog_joblib.py'] timeout = 10, stdout_regex = 'ok', stderr_regex = None, env = None def check_subprocess_call( cmd, timeout=1, stdout_regex=None, stderr_regex=None, env=None ): """Runs a command in a subprocess with timeout in seconds. Also checks returncode is zero, stdout if stdout_regex is set, and stderr if stderr_regex is set. """ if env is not None: env = {**os.environ, **env} proc = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, text=True ) def kill_process(): warnings.warn(f"Timeout running {cmd}") proc.kill() timer = threading.Timer(timeout, kill_process) try: timer.start() stdout, stderr = proc.communicate() if proc.returncode == -9: message = ( f"Subprocess timeout after {timeout}s.\nStdout:\n{stdout}\n" f"Stderr:\n{stderr}" ) raise TimeoutError(message) elif proc.returncode != 0: message = ( f"Non-zero return code: {proc.returncode}.\nStdout:\n{stdout}" f"\nStderr:\n{stderr}" ) > raise ValueError(message) E ValueError: Non-zero return code: 1. E Stdout: E E Stderr: E Traceback (most recent call last): E File "/tmp/tmpvgqfoyog_joblib.py", line 48, in E e = get_reusable_executor() E ^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 89, in get_reusable_executor E _executor, _ = _ReusablePoolExecutor.get_reusable_executor( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 182, in get_reusable_executor E _executor = executor = cls( E ^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 118, in __init__ E super().__init__( E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/process_executor.py", line 1139, in __init__ E self._processes_management_lock = self._context.Lock() E ^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/context.py", line 362, in Lock E return Lock() E ^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 192, in __init__ E super().__init__(SEMAPHORE, 1, 1) E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 72, in __init__ E self._semlock = _SemLock( E ^^^^^^^^^ E PermissionError: [Errno 13] Permission denied tests/utils.py:153: ValueError _______________ TestCloudpickleWrapper.test_set_loky_pickler[''] _______________ self = loky_pickler = "''" @pytest.mark.parametrize( "loky_pickler", [None, "''", "'cloudpickle'", "'pickle'"] ) def test_set_loky_pickler(self, loky_pickler): # Test that the function set_loky_pickler correctly changes the pickler # used in loky. code = f"""if True: from loky import set_loky_pickler from loky import get_reusable_executor from loky import wrap_non_picklable_objects from loky.backend.reduction import get_loky_pickler from loky.backend.reduction import get_loky_pickler_name from pickle import Pickler from cloudpickle import CloudPickler # Check the default loky_pickler is cloudpickle current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == 'cloudpickle', ( f"default got loky_pickler={{current_loky_pickler_name}}" ) assert issubclass(get_loky_pickler(), CloudPickler) # Check that setting loky pickler to a value is working loky_pickler = {loky_pickler} set_loky_pickler(loky_pickler) if loky_pickler in [None, '', 'cloudpickle']: expected_loky_pickler = CloudPickler expected_loky_pickler_name = 'cloudpickle' elif loky_pickler == 'pickle': expected_loky_pickler = Pickler expected_loky_pickler_name = 'pickle' else: raise RuntimeError( f"unexpected value {{loky_pickler}} for loky_pickler") current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == expected_loky_pickler_name, ( f"Expected 'pickle' and got {{current_loky_pickler_name}}") assert issubclass(get_loky_pickler(), expected_loky_pickler) # Make sure that the default behavior is restored when # set_loky_pickler is used without arguments set_loky_pickler() current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == 'cloudpickle', ( f"default got loky_pickler={{current_loky_pickler_name}}") assert issubclass(get_loky_pickler(), CloudPickler) # Check that the loky pickler in the workers is the correct one. set_loky_pickler(loky_pickler) e = get_reusable_executor() worker_loky_pickler = e.submit(get_loky_pickler_name).result() assert worker_loky_pickler == expected_loky_pickler_name, ( f"expected {{loky_pickler}} " f"but got {{worker_loky_pickler}} for the worker loky pickler" ) # Check that for cloudpickle, this does not fail and for pickle, it # fails with the correct Error. def test_func(x): return x e = get_reusable_executor() assert e.submit(test_func, 42).result() == 42 print("ok") """ cmd = [sys.executable] try: fid, filename = mkstemp(suffix="_joblib.py") os.close(fid) with open(filename, mode="w") as f: f.write(code) cmd += [filename] if loky_pickler == "'pickle'": match = "(Can't get|has no) attribute 'test_func'" with pytest.raises(ValueError, match=match): check_subprocess_call(cmd, timeout=10) else: > check_subprocess_call(cmd, stdout_regex="ok", timeout=10) tests/test_cloudpickle_wrapper.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '/tmp/tmpdk7ouegz_joblib.py'] timeout = 10, stdout_regex = 'ok', stderr_regex = None, env = None def check_subprocess_call( cmd, timeout=1, stdout_regex=None, stderr_regex=None, env=None ): """Runs a command in a subprocess with timeout in seconds. Also checks returncode is zero, stdout if stdout_regex is set, and stderr if stderr_regex is set. """ if env is not None: env = {**os.environ, **env} proc = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, text=True ) def kill_process(): warnings.warn(f"Timeout running {cmd}") proc.kill() timer = threading.Timer(timeout, kill_process) try: timer.start() stdout, stderr = proc.communicate() if proc.returncode == -9: message = ( f"Subprocess timeout after {timeout}s.\nStdout:\n{stdout}\n" f"Stderr:\n{stderr}" ) raise TimeoutError(message) elif proc.returncode != 0: message = ( f"Non-zero return code: {proc.returncode}.\nStdout:\n{stdout}" f"\nStderr:\n{stderr}" ) > raise ValueError(message) E ValueError: Non-zero return code: 1. E Stdout: E E Stderr: E Traceback (most recent call last): E File "/tmp/tmpdk7ouegz_joblib.py", line 48, in E e = get_reusable_executor() E ^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 89, in get_reusable_executor E _executor, _ = _ReusablePoolExecutor.get_reusable_executor( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 182, in get_reusable_executor E _executor = executor = cls( E ^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 118, in __init__ E super().__init__( E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/process_executor.py", line 1139, in __init__ E self._processes_management_lock = self._context.Lock() E ^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/context.py", line 362, in Lock E return Lock() E ^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 192, in __init__ E super().__init__(SEMAPHORE, 1, 1) E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 72, in __init__ E self._semlock = _SemLock( E ^^^^^^^^^ E PermissionError: [Errno 13] Permission denied tests/utils.py:153: ValueError _________ TestCloudpickleWrapper.test_set_loky_pickler['cloudpickle'] __________ self = loky_pickler = "'cloudpickle'" @pytest.mark.parametrize( "loky_pickler", [None, "''", "'cloudpickle'", "'pickle'"] ) def test_set_loky_pickler(self, loky_pickler): # Test that the function set_loky_pickler correctly changes the pickler # used in loky. code = f"""if True: from loky import set_loky_pickler from loky import get_reusable_executor from loky import wrap_non_picklable_objects from loky.backend.reduction import get_loky_pickler from loky.backend.reduction import get_loky_pickler_name from pickle import Pickler from cloudpickle import CloudPickler # Check the default loky_pickler is cloudpickle current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == 'cloudpickle', ( f"default got loky_pickler={{current_loky_pickler_name}}" ) assert issubclass(get_loky_pickler(), CloudPickler) # Check that setting loky pickler to a value is working loky_pickler = {loky_pickler} set_loky_pickler(loky_pickler) if loky_pickler in [None, '', 'cloudpickle']: expected_loky_pickler = CloudPickler expected_loky_pickler_name = 'cloudpickle' elif loky_pickler == 'pickle': expected_loky_pickler = Pickler expected_loky_pickler_name = 'pickle' else: raise RuntimeError( f"unexpected value {{loky_pickler}} for loky_pickler") current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == expected_loky_pickler_name, ( f"Expected 'pickle' and got {{current_loky_pickler_name}}") assert issubclass(get_loky_pickler(), expected_loky_pickler) # Make sure that the default behavior is restored when # set_loky_pickler is used without arguments set_loky_pickler() current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == 'cloudpickle', ( f"default got loky_pickler={{current_loky_pickler_name}}") assert issubclass(get_loky_pickler(), CloudPickler) # Check that the loky pickler in the workers is the correct one. set_loky_pickler(loky_pickler) e = get_reusable_executor() worker_loky_pickler = e.submit(get_loky_pickler_name).result() assert worker_loky_pickler == expected_loky_pickler_name, ( f"expected {{loky_pickler}} " f"but got {{worker_loky_pickler}} for the worker loky pickler" ) # Check that for cloudpickle, this does not fail and for pickle, it # fails with the correct Error. def test_func(x): return x e = get_reusable_executor() assert e.submit(test_func, 42).result() == 42 print("ok") """ cmd = [sys.executable] try: fid, filename = mkstemp(suffix="_joblib.py") os.close(fid) with open(filename, mode="w") as f: f.write(code) cmd += [filename] if loky_pickler == "'pickle'": match = "(Can't get|has no) attribute 'test_func'" with pytest.raises(ValueError, match=match): check_subprocess_call(cmd, timeout=10) else: > check_subprocess_call(cmd, stdout_regex="ok", timeout=10) tests/test_cloudpickle_wrapper.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '/tmp/tmpibr0bjnr_joblib.py'] timeout = 10, stdout_regex = 'ok', stderr_regex = None, env = None def check_subprocess_call( cmd, timeout=1, stdout_regex=None, stderr_regex=None, env=None ): """Runs a command in a subprocess with timeout in seconds. Also checks returncode is zero, stdout if stdout_regex is set, and stderr if stderr_regex is set. """ if env is not None: env = {**os.environ, **env} proc = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, text=True ) def kill_process(): warnings.warn(f"Timeout running {cmd}") proc.kill() timer = threading.Timer(timeout, kill_process) try: timer.start() stdout, stderr = proc.communicate() if proc.returncode == -9: message = ( f"Subprocess timeout after {timeout}s.\nStdout:\n{stdout}\n" f"Stderr:\n{stderr}" ) raise TimeoutError(message) elif proc.returncode != 0: message = ( f"Non-zero return code: {proc.returncode}.\nStdout:\n{stdout}" f"\nStderr:\n{stderr}" ) > raise ValueError(message) E ValueError: Non-zero return code: 1. E Stdout: E E Stderr: E Traceback (most recent call last): E File "/tmp/tmpibr0bjnr_joblib.py", line 48, in E e = get_reusable_executor() E ^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 89, in get_reusable_executor E _executor, _ = _ReusablePoolExecutor.get_reusable_executor( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 182, in get_reusable_executor E _executor = executor = cls( E ^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 118, in __init__ E super().__init__( E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/process_executor.py", line 1139, in __init__ E self._processes_management_lock = self._context.Lock() E ^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/context.py", line 362, in Lock E return Lock() E ^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 192, in __init__ E super().__init__(SEMAPHORE, 1, 1) E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 72, in __init__ E self._semlock = _SemLock( E ^^^^^^^^^ E PermissionError: [Errno 13] Permission denied tests/utils.py:153: ValueError ____________ TestCloudpickleWrapper.test_set_loky_pickler['pickle'] ____________ self = loky_pickler = "'pickle'" @pytest.mark.parametrize( "loky_pickler", [None, "''", "'cloudpickle'", "'pickle'"] ) def test_set_loky_pickler(self, loky_pickler): # Test that the function set_loky_pickler correctly changes the pickler # used in loky. code = f"""if True: from loky import set_loky_pickler from loky import get_reusable_executor from loky import wrap_non_picklable_objects from loky.backend.reduction import get_loky_pickler from loky.backend.reduction import get_loky_pickler_name from pickle import Pickler from cloudpickle import CloudPickler # Check the default loky_pickler is cloudpickle current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == 'cloudpickle', ( f"default got loky_pickler={{current_loky_pickler_name}}" ) assert issubclass(get_loky_pickler(), CloudPickler) # Check that setting loky pickler to a value is working loky_pickler = {loky_pickler} set_loky_pickler(loky_pickler) if loky_pickler in [None, '', 'cloudpickle']: expected_loky_pickler = CloudPickler expected_loky_pickler_name = 'cloudpickle' elif loky_pickler == 'pickle': expected_loky_pickler = Pickler expected_loky_pickler_name = 'pickle' else: raise RuntimeError( f"unexpected value {{loky_pickler}} for loky_pickler") current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == expected_loky_pickler_name, ( f"Expected 'pickle' and got {{current_loky_pickler_name}}") assert issubclass(get_loky_pickler(), expected_loky_pickler) # Make sure that the default behavior is restored when # set_loky_pickler is used without arguments set_loky_pickler() current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == 'cloudpickle', ( f"default got loky_pickler={{current_loky_pickler_name}}") assert issubclass(get_loky_pickler(), CloudPickler) # Check that the loky pickler in the workers is the correct one. set_loky_pickler(loky_pickler) e = get_reusable_executor() worker_loky_pickler = e.submit(get_loky_pickler_name).result() assert worker_loky_pickler == expected_loky_pickler_name, ( f"expected {{loky_pickler}} " f"but got {{worker_loky_pickler}} for the worker loky pickler" ) # Check that for cloudpickle, this does not fail and for pickle, it # fails with the correct Error. def test_func(x): return x e = get_reusable_executor() assert e.submit(test_func, 42).result() == 42 print("ok") """ cmd = [sys.executable] try: fid, filename = mkstemp(suffix="_joblib.py") os.close(fid) with open(filename, mode="w") as f: f.write(code) cmd += [filename] if loky_pickler == "'pickle'": match = "(Can't get|has no) attribute 'test_func'" with pytest.raises(ValueError, match=match): > check_subprocess_call(cmd, timeout=10) tests/test_cloudpickle_wrapper.py:251: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '/tmp/tmp0zu07dfw_joblib.py'] timeout = 10, stdout_regex = None, stderr_regex = None, env = None def check_subprocess_call( cmd, timeout=1, stdout_regex=None, stderr_regex=None, env=None ): """Runs a command in a subprocess with timeout in seconds. Also checks returncode is zero, stdout if stdout_regex is set, and stderr if stderr_regex is set. """ if env is not None: env = {**os.environ, **env} proc = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, text=True ) def kill_process(): warnings.warn(f"Timeout running {cmd}") proc.kill() timer = threading.Timer(timeout, kill_process) try: timer.start() stdout, stderr = proc.communicate() if proc.returncode == -9: message = ( f"Subprocess timeout after {timeout}s.\nStdout:\n{stdout}\n" f"Stderr:\n{stderr}" ) raise TimeoutError(message) elif proc.returncode != 0: message = ( f"Non-zero return code: {proc.returncode}.\nStdout:\n{stdout}" f"\nStderr:\n{stderr}" ) > raise ValueError(message) E ValueError: Non-zero return code: 1. E Stdout: E E Stderr: E Traceback (most recent call last): E File "/tmp/tmp0zu07dfw_joblib.py", line 48, in E e = get_reusable_executor() E ^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 89, in get_reusable_executor E _executor, _ = _ReusablePoolExecutor.get_reusable_executor( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 182, in get_reusable_executor E _executor = executor = cls( E ^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 118, in __init__ E super().__init__( E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/process_executor.py", line 1139, in __init__ E self._processes_management_lock = self._context.Lock() E ^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/context.py", line 362, in Lock E return Lock() E ^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 192, in __init__ E super().__init__(SEMAPHORE, 1, 1) E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 72, in __init__ E self._semlock = _SemLock( E ^^^^^^^^^ E PermissionError: [Errno 13] Permission denied tests/utils.py:153: ValueError During handling of the above exception, another exception occurred: self = loky_pickler = "'pickle'" @pytest.mark.parametrize( "loky_pickler", [None, "''", "'cloudpickle'", "'pickle'"] ) def test_set_loky_pickler(self, loky_pickler): # Test that the function set_loky_pickler correctly changes the pickler # used in loky. code = f"""if True: from loky import set_loky_pickler from loky import get_reusable_executor from loky import wrap_non_picklable_objects from loky.backend.reduction import get_loky_pickler from loky.backend.reduction import get_loky_pickler_name from pickle import Pickler from cloudpickle import CloudPickler # Check the default loky_pickler is cloudpickle current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == 'cloudpickle', ( f"default got loky_pickler={{current_loky_pickler_name}}" ) assert issubclass(get_loky_pickler(), CloudPickler) # Check that setting loky pickler to a value is working loky_pickler = {loky_pickler} set_loky_pickler(loky_pickler) if loky_pickler in [None, '', 'cloudpickle']: expected_loky_pickler = CloudPickler expected_loky_pickler_name = 'cloudpickle' elif loky_pickler == 'pickle': expected_loky_pickler = Pickler expected_loky_pickler_name = 'pickle' else: raise RuntimeError( f"unexpected value {{loky_pickler}} for loky_pickler") current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == expected_loky_pickler_name, ( f"Expected 'pickle' and got {{current_loky_pickler_name}}") assert issubclass(get_loky_pickler(), expected_loky_pickler) # Make sure that the default behavior is restored when # set_loky_pickler is used without arguments set_loky_pickler() current_loky_pickler_name = get_loky_pickler_name() assert current_loky_pickler_name == 'cloudpickle', ( f"default got loky_pickler={{current_loky_pickler_name}}") assert issubclass(get_loky_pickler(), CloudPickler) # Check that the loky pickler in the workers is the correct one. set_loky_pickler(loky_pickler) e = get_reusable_executor() worker_loky_pickler = e.submit(get_loky_pickler_name).result() assert worker_loky_pickler == expected_loky_pickler_name, ( f"expected {{loky_pickler}} " f"but got {{worker_loky_pickler}} for the worker loky pickler" ) # Check that for cloudpickle, this does not fail and for pickle, it # fails with the correct Error. def test_func(x): return x e = get_reusable_executor() assert e.submit(test_func, 42).result() == 42 print("ok") """ cmd = [sys.executable] try: fid, filename = mkstemp(suffix="_joblib.py") os.close(fid) with open(filename, mode="w") as f: f.write(code) cmd += [filename] if loky_pickler == "'pickle'": match = "(Can't get|has no) attribute 'test_func'" > with pytest.raises(ValueError, match=match): E AssertionError: Regex pattern did not match. E Regex: "(Can't get|has no) attribute 'test_func'" E Input: 'Non-zero return code: 1.\nStdout:\n\nStderr:\nTraceback (most recent call last):\n File "/tmp/tmp0zu07dfw_joblib.py", line 48, in \n e = get_reusable_executor()\n ^^^^^^^^^^^^^^^^^^^^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 89, in get_reusable_executor\n _executor, _ = _ReusablePoolExecutor.get_reusable_executor(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 182, in get_reusable_executor\n _executor = executor = cls(\n ^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/reusable_executor.py", line 118, in __init__\n super().__init__(\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/process_executor.py", line 1139, in __init__\n self._processes_management_lock = self._context.Lock()\n ^^^^^^^^^^^^^^^^^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/context.py", line 362, in Lock\n return Lock()\n ^^^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 192, in __init__\n super().__init__(SEMAPHORE, 1, 1)\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/lib/python3.12/site-packages/loky/backend/synchronize.py", line 72, in __init__\n self._semlock = _SemLock(\n ^^^^^^^^^\nPermissionError: [Errno 13] Permission denied\n' tests/test_cloudpickle_wrapper.py:250: AssertionError ______________________ TestLokyBackend.test_process[loky] ______________________ self = context_name = 'loky' @pytest.mark.parametrize("context_name", ["loky", "loky_init_main"]) def test_process(self, context_name): """behavior of Process variables and functional connection objects""" > q = self.Queue() tests/test_loky_backend.py:107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:332: in Queue return Queue(maxsize, reducers=reducers, ctx=self.get_context()) loky/backend/queues.py:32: in __init__ super().__init__(maxsize=maxsize, ctx=ctx) /usr/lib/python3.12/multiprocessing/queues.py:43: in __init__ self._rlock = ctx.Lock() loky/backend/context.py:362: in Lock return Lock() loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _________________ TestLokyBackend.test_process[loky_init_main] _________________ self = context_name = 'loky_init_main' @pytest.mark.parametrize("context_name", ["loky", "loky_init_main"]) def test_process(self, context_name): """behavior of Process variables and functional connection objects""" > q = self.Queue() tests/test_loky_backend.py:107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:332: in Queue return Queue(maxsize, reducers=reducers, ctx=self.get_context()) loky/backend/queues.py:32: in __init__ super().__init__(maxsize=maxsize, ctx=ctx) /usr/lib/python3.12/multiprocessing/queues.py:43: in __init__ self._rlock = ctx.Lock() loky/backend/context.py:362: in Lock return Lock() loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ______________________ TestLokyBackend.test_socket_queue _______________________ self = @pytest.mark.skipif( not HAVE_SEND_HANDLE or not HAVE_FROM_FD, reason="This system cannot send handle between process" ". Connections object should be shared at spawning.", ) def test_socket_queue(self): """sockets can be pickled in a queue and are able to send/recv""" > q = self.SimpleQueue() tests/test_loky_backend.py:193: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:338: in SimpleQueue return SimpleQueue(reducers=reducers, ctx=self.get_context()) loky/backend/queues.py:198: in __init__ super().__init__(ctx=ctx) /usr/lib/python3.12/multiprocessing/queues.py:363: in __init__ self._rlock = ctx.Lock() loky/backend/context.py:362: in Lock return Lock() loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ____________________ TestLokyBackend.test_connection_queue _____________________ self = @pytest.mark.skipif( not HAVE_SEND_HANDLE, reason="This system cannot send handle between. " "Connections object should be shared at spawning.", ) def test_connection_queue(self): """connections can be pickled in a queue and are able to send/recv""" > q = self.SimpleQueue() tests/test_loky_backend.py:237: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:338: in SimpleQueue return SimpleQueue(reducers=reducers, ctx=self.get_context()) loky/backend/queues.py:198: in __init__ super().__init__(ctx=ctx) /usr/lib/python3.12/multiprocessing/queues.py:363: in __init__ self._rlock = ctx.Lock() loky/backend/context.py:362: in Lock return Lock() loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ____________________ TestLokyBackend.test_child_env_process ____________________ self = def test_child_env_process(self): key = "loky_child_env_process" value = "loky works" > out_queue = self.SimpleQueue() tests/test_loky_backend.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:338: in SimpleQueue return SimpleQueue(reducers=reducers, ctx=self.get_context()) loky/backend/queues.py:198: in __init__ super().__init__(ctx=ctx) /usr/lib/python3.12/multiprocessing/queues.py:363: in __init__ self._rlock = ctx.Lock() loky/backend/context.py:362: in Lock return Lock() loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ________________________ TestLokyBackend.test_sentinel _________________________ self = def test_sentinel(self): > event = self.Event() tests/test_loky_backend.py:395: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ________________________ test_default_subcontext[loky] _________________________ method = 'loky' @pytest.mark.parametrize("method", START_METHODS) def test_default_subcontext(method): code = f"""if True: import sys from loky.backend.context import get_context, set_start_method from tests.test_loky_backend import _test_default_subcontext set_start_method('{method}') ctx = get_context() assert ctx.get_start_method() == '{method}' queue = ctx.SimpleQueue() p = ctx.Process(target=_test_default_subcontext, args=(queue,)) p.start() p.join() start_method = queue.get() assert start_method == '{method}', start_method try: set_start_method('loky') except RuntimeError: pass else: raise AssertionError("Did not raise RuntimeError when resetting" "start_method without force") set_start_method(None, force=True) ctx = get_context() assert ctx.get_start_method() == 'loky' """ cmd = [sys.executable, "-c", code] > check_subprocess_call(cmd, timeout=10) tests/test_loky_backend.py:778: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '-c', "if True:\n import sys\n\n ...et_start_method(None, force=True)\n ctx = get_context()\n assert ctx.get_start_method() == 'loky'\n "] timeout = 10, stdout_regex = None, stderr_regex = None, env = None def check_subprocess_call( cmd, timeout=1, stdout_regex=None, stderr_regex=None, env=None ): """Runs a command in a subprocess with timeout in seconds. Also checks returncode is zero, stdout if stdout_regex is set, and stderr if stderr_regex is set. """ if env is not None: env = {**os.environ, **env} proc = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, text=True ) def kill_process(): warnings.warn(f"Timeout running {cmd}") proc.kill() timer = threading.Timer(timeout, kill_process) try: timer.start() stdout, stderr = proc.communicate() if proc.returncode == -9: message = ( f"Subprocess timeout after {timeout}s.\nStdout:\n{stdout}\n" f"Stderr:\n{stderr}" ) raise TimeoutError(message) elif proc.returncode != 0: message = ( f"Non-zero return code: {proc.returncode}.\nStdout:\n{stdout}" f"\nStderr:\n{stderr}" ) > raise ValueError(message) E ValueError: Non-zero return code: 1. E Stdout: E E Stderr: E Traceback (most recent call last): E File "", line 11, in E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/context.py", line 338, in SimpleQueue E return SimpleQueue(reducers=reducers, ctx=self.get_context()) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/queues.py", line 198, in __init__ E super().__init__(ctx=ctx) E File "/usr/lib/python3.12/multiprocessing/queues.py", line 363, in __init__ E self._rlock = ctx.Lock() E ^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/context.py", line 362, in Lock E return Lock() E ^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/synchronize.py", line 192, in __init__ E super().__init__(SEMAPHORE, 1, 1) E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/synchronize.py", line 72, in __init__ E self._semlock = _SemLock( E ^^^^^^^^^ E PermissionError: [Errno 13] Permission denied tests/utils.py:153: ValueError ___________________ test_default_subcontext[loky_init_main] ____________________ method = 'loky_init_main' @pytest.mark.parametrize("method", START_METHODS) def test_default_subcontext(method): code = f"""if True: import sys from loky.backend.context import get_context, set_start_method from tests.test_loky_backend import _test_default_subcontext set_start_method('{method}') ctx = get_context() assert ctx.get_start_method() == '{method}' queue = ctx.SimpleQueue() p = ctx.Process(target=_test_default_subcontext, args=(queue,)) p.start() p.join() start_method = queue.get() assert start_method == '{method}', start_method try: set_start_method('loky') except RuntimeError: pass else: raise AssertionError("Did not raise RuntimeError when resetting" "start_method without force") set_start_method(None, force=True) ctx = get_context() assert ctx.get_start_method() == 'loky' """ cmd = [sys.executable, "-c", code] > check_subprocess_call(cmd, timeout=10) tests/test_loky_backend.py:778: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '-c', "if True:\n import sys\n\n ...et_start_method(None, force=True)\n ctx = get_context()\n assert ctx.get_start_method() == 'loky'\n "] timeout = 10, stdout_regex = None, stderr_regex = None, env = None def check_subprocess_call( cmd, timeout=1, stdout_regex=None, stderr_regex=None, env=None ): """Runs a command in a subprocess with timeout in seconds. Also checks returncode is zero, stdout if stdout_regex is set, and stderr if stderr_regex is set. """ if env is not None: env = {**os.environ, **env} proc = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, text=True ) def kill_process(): warnings.warn(f"Timeout running {cmd}") proc.kill() timer = threading.Timer(timeout, kill_process) try: timer.start() stdout, stderr = proc.communicate() if proc.returncode == -9: message = ( f"Subprocess timeout after {timeout}s.\nStdout:\n{stdout}\n" f"Stderr:\n{stderr}" ) raise TimeoutError(message) elif proc.returncode != 0: message = ( f"Non-zero return code: {proc.returncode}.\nStdout:\n{stdout}" f"\nStderr:\n{stderr}" ) > raise ValueError(message) E ValueError: Non-zero return code: 1. E Stdout: E E Stderr: E Traceback (most recent call last): E File "", line 11, in E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/context.py", line 338, in SimpleQueue E return SimpleQueue(reducers=reducers, ctx=self.get_context()) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/queues.py", line 198, in __init__ E super().__init__(ctx=ctx) E File "/usr/lib/python3.12/multiprocessing/queues.py", line 363, in __init__ E self._rlock = ctx.Lock() E ^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/context.py", line 362, in Lock E return Lock() E ^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/synchronize.py", line 192, in __init__ E super().__init__(SEMAPHORE, 1, 1) E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/synchronize.py", line 72, in __init__ E self._semlock = _SemLock( E ^^^^^^^^^ E PermissionError: [Errno 13] Permission denied tests/utils.py:153: ValueError ________________________ test_default_subcontext[spawn] ________________________ method = 'spawn' @pytest.mark.parametrize("method", START_METHODS) def test_default_subcontext(method): code = f"""if True: import sys from loky.backend.context import get_context, set_start_method from tests.test_loky_backend import _test_default_subcontext set_start_method('{method}') ctx = get_context() assert ctx.get_start_method() == '{method}' queue = ctx.SimpleQueue() p = ctx.Process(target=_test_default_subcontext, args=(queue,)) p.start() p.join() start_method = queue.get() assert start_method == '{method}', start_method try: set_start_method('loky') except RuntimeError: pass else: raise AssertionError("Did not raise RuntimeError when resetting" "start_method without force") set_start_method(None, force=True) ctx = get_context() assert ctx.get_start_method() == 'loky' """ cmd = [sys.executable, "-c", code] > check_subprocess_call(cmd, timeout=10) tests/test_loky_backend.py:778: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '-c', "if True:\n import sys\n\n ...et_start_method(None, force=True)\n ctx = get_context()\n assert ctx.get_start_method() == 'loky'\n "] timeout = 10, stdout_regex = None, stderr_regex = None, env = None def check_subprocess_call( cmd, timeout=1, stdout_regex=None, stderr_regex=None, env=None ): """Runs a command in a subprocess with timeout in seconds. Also checks returncode is zero, stdout if stdout_regex is set, and stderr if stderr_regex is set. """ if env is not None: env = {**os.environ, **env} proc = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, text=True ) def kill_process(): warnings.warn(f"Timeout running {cmd}") proc.kill() timer = threading.Timer(timeout, kill_process) try: timer.start() stdout, stderr = proc.communicate() if proc.returncode == -9: message = ( f"Subprocess timeout after {timeout}s.\nStdout:\n{stdout}\n" f"Stderr:\n{stderr}" ) raise TimeoutError(message) elif proc.returncode != 0: message = ( f"Non-zero return code: {proc.returncode}.\nStdout:\n{stdout}" f"\nStderr:\n{stderr}" ) > raise ValueError(message) E ValueError: Non-zero return code: 1. E Stdout: E E Stderr: E Traceback (most recent call last): E File "", line 11, in E File "/usr/lib/python3.12/multiprocessing/context.py", line 113, in SimpleQueue E return SimpleQueue(ctx=self.get_context()) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3.12/multiprocessing/queues.py", line 363, in __init__ E self._rlock = ctx.Lock() E ^^^^^^^^^^ E File "/usr/lib/python3.12/multiprocessing/context.py", line 68, in Lock E return Lock(ctx=self.get_context()) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3.12/multiprocessing/synchronize.py", line 169, in __init__ E SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) E File "/usr/lib/python3.12/multiprocessing/synchronize.py", line 57, in __init__ E sl = self._semlock = _multiprocessing.SemLock( E ^^^^^^^^^^^^^^^^^^^^^^^^^ E PermissionError: [Errno 13] Permission denied tests/utils.py:153: ValueError ________________________ test_default_subcontext[fork] _________________________ method = 'fork' @pytest.mark.parametrize("method", START_METHODS) def test_default_subcontext(method): code = f"""if True: import sys from loky.backend.context import get_context, set_start_method from tests.test_loky_backend import _test_default_subcontext set_start_method('{method}') ctx = get_context() assert ctx.get_start_method() == '{method}' queue = ctx.SimpleQueue() p = ctx.Process(target=_test_default_subcontext, args=(queue,)) p.start() p.join() start_method = queue.get() assert start_method == '{method}', start_method try: set_start_method('loky') except RuntimeError: pass else: raise AssertionError("Did not raise RuntimeError when resetting" "start_method without force") set_start_method(None, force=True) ctx = get_context() assert ctx.get_start_method() == 'loky' """ cmd = [sys.executable, "-c", code] > check_subprocess_call(cmd, timeout=10) tests/test_loky_backend.py:778: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '-c', "if True:\n import sys\n\n ...et_start_method(None, force=True)\n ctx = get_context()\n assert ctx.get_start_method() == 'loky'\n "] timeout = 10, stdout_regex = None, stderr_regex = None, env = None def check_subprocess_call( cmd, timeout=1, stdout_regex=None, stderr_regex=None, env=None ): """Runs a command in a subprocess with timeout in seconds. Also checks returncode is zero, stdout if stdout_regex is set, and stderr if stderr_regex is set. """ if env is not None: env = {**os.environ, **env} proc = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, text=True ) def kill_process(): warnings.warn(f"Timeout running {cmd}") proc.kill() timer = threading.Timer(timeout, kill_process) try: timer.start() stdout, stderr = proc.communicate() if proc.returncode == -9: message = ( f"Subprocess timeout after {timeout}s.\nStdout:\n{stdout}\n" f"Stderr:\n{stderr}" ) raise TimeoutError(message) elif proc.returncode != 0: message = ( f"Non-zero return code: {proc.returncode}.\nStdout:\n{stdout}" f"\nStderr:\n{stderr}" ) > raise ValueError(message) E ValueError: Non-zero return code: 1. E Stdout: E E Stderr: E /home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/context.py:47: UserWarning: `fork` start method should not be used with `loky` as it does not respect POSIX. Try using `spawn` or `loky` instead. E warnings.warn( E Traceback (most recent call last): E File "", line 11, in E File "/usr/lib/python3.12/multiprocessing/context.py", line 113, in SimpleQueue E return SimpleQueue(ctx=self.get_context()) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3.12/multiprocessing/queues.py", line 363, in __init__ E self._rlock = ctx.Lock() E ^^^^^^^^^^ E File "/usr/lib/python3.12/multiprocessing/context.py", line 68, in Lock E return Lock(ctx=self.get_context()) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3.12/multiprocessing/synchronize.py", line 169, in __init__ E SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) E File "/usr/lib/python3.12/multiprocessing/synchronize.py", line 57, in __init__ E sl = self._semlock = _multiprocessing.SemLock( E ^^^^^^^^^^^^^^^^^^^^^^^^^ E PermissionError: [Errno 13] Permission denied tests/utils.py:153: ValueError _____________________ test_default_subcontext[forkserver] ______________________ method = 'forkserver' @pytest.mark.parametrize("method", START_METHODS) def test_default_subcontext(method): code = f"""if True: import sys from loky.backend.context import get_context, set_start_method from tests.test_loky_backend import _test_default_subcontext set_start_method('{method}') ctx = get_context() assert ctx.get_start_method() == '{method}' queue = ctx.SimpleQueue() p = ctx.Process(target=_test_default_subcontext, args=(queue,)) p.start() p.join() start_method = queue.get() assert start_method == '{method}', start_method try: set_start_method('loky') except RuntimeError: pass else: raise AssertionError("Did not raise RuntimeError when resetting" "start_method without force") set_start_method(None, force=True) ctx = get_context() assert ctx.get_start_method() == 'loky' """ cmd = [sys.executable, "-c", code] > check_subprocess_call(cmd, timeout=10) tests/test_loky_backend.py:778: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '-c', "if True:\n import sys\n\n ...et_start_method(None, force=True)\n ctx = get_context()\n assert ctx.get_start_method() == 'loky'\n "] timeout = 10, stdout_regex = None, stderr_regex = None, env = None def check_subprocess_call( cmd, timeout=1, stdout_regex=None, stderr_regex=None, env=None ): """Runs a command in a subprocess with timeout in seconds. Also checks returncode is zero, stdout if stdout_regex is set, and stderr if stderr_regex is set. """ if env is not None: env = {**os.environ, **env} proc = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, text=True ) def kill_process(): warnings.warn(f"Timeout running {cmd}") proc.kill() timer = threading.Timer(timeout, kill_process) try: timer.start() stdout, stderr = proc.communicate() if proc.returncode == -9: message = ( f"Subprocess timeout after {timeout}s.\nStdout:\n{stdout}\n" f"Stderr:\n{stderr}" ) raise TimeoutError(message) elif proc.returncode != 0: message = ( f"Non-zero return code: {proc.returncode}.\nStdout:\n{stdout}" f"\nStderr:\n{stderr}" ) > raise ValueError(message) E ValueError: Non-zero return code: 1. E Stdout: E E Stderr: E Traceback (most recent call last): E File "", line 11, in E File "/usr/lib/python3.12/multiprocessing/context.py", line 113, in SimpleQueue E return SimpleQueue(ctx=self.get_context()) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3.12/multiprocessing/queues.py", line 363, in __init__ E self._rlock = ctx.Lock() E ^^^^^^^^^^ E File "/usr/lib/python3.12/multiprocessing/context.py", line 68, in Lock E return Lock(ctx=self.get_context()) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3.12/multiprocessing/synchronize.py", line 169, in __init__ E SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) E File "/usr/lib/python3.12/multiprocessing/synchronize.py", line 57, in __init__ E sl = self._semlock = _multiprocessing.SemLock( E ^^^^^^^^^^^^^^^^^^^^^^^^^ E PermissionError: [Errno 13] Permission denied tests/utils.py:153: ValueError ________________________ test_cpu_count_psutil_affinity ________________________ def test_cpu_count_psutil_affinity(): psutil = pytest.importorskip("psutil") > p = psutil.Process() tests/test_loky_module.py:115: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/psutil/__init__.py:317: in __init__ self._init(pid) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = psutil.Process(pid=213653, status='terminated'), pid = 213653 _ignore_nsp = False def _init(self, pid, _ignore_nsp=False): if pid is None: pid = os.getpid() else: if pid < 0: msg = f"pid must be a positive integer (got {pid})" raise ValueError(msg) try: _psplatform.cext.check_pid_range(pid) except OverflowError as err: msg = "process PID out of range" raise NoSuchProcess(pid, msg=msg) from err self._pid = pid self._name = None self._exe = None self._create_time = None self._gone = False self._pid_reused = False self._hash = None self._lock = threading.RLock() # used for caching on Windows only (on POSIX ppid may change) self._ppid = None # platform-specific modules define an _psplatform.Process # implementation class self._proc = _psplatform.Process(pid) self._last_sys_cpu_times = None self._last_proc_cpu_times = None self._exitcode = _SENTINEL self._ident = (self.pid, None) try: self._ident = self._get_ident() except AccessDenied: # This should happen on Windows only, since we use the fast # create time method. AFAIK, on all other platforms we are # able to get create time for all PIDs. pass except ZombieProcess: # Zombies can still be queried by this class (although # not always) and pids() return them so just go on. pass except NoSuchProcess: if not _ignore_nsp: msg = "process PID not found" > raise NoSuchProcess(pid, msg=msg) from None E psutil.NoSuchProcess: process PID not found (pid=213653) /usr/lib/python3.12/site-packages/psutil/__init__.py:363: NoSuchProcess _______________ TestResourceTracker.test_resource_utils[semlock] _______________ self = rtype = 'semlock' @pytest.mark.parametrize("rtype", ["file", "folder", "semlock"]) def test_resource_utils(self, rtype): # Check that the resouce utils work as expected in the main process if sys.platform == "win32" and rtype == "semlock": pytest.skip("no semlock on windows") > name = create_resource(rtype) tests/test_resource_tracker.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rtype = 'semlock' def create_resource(rtype): if rtype == "folder": return mkdtemp(dir=os.getcwd()) elif rtype == "semlock": name = f"test-loky-{os.getpid()}-{next(_rand_name)}" > _SemLock(1, 1, 1, name, False) E PermissionError: [Errno 13] Permission denied tests/utils.py:29: PermissionError __________ TestResourceTracker.test_child_retrieves_resource_tracker ___________ self = def test_child_retrieves_resource_tracker(self): # First simple fd retrieval check (see #200) # checking fd only work on posix for now if sys.platform != "win32": try: parent_rtracker_fd = get_rtracker_fd() > executor = ProcessPoolExecutor(max_workers=2) tests/test_resource_tracker.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/process_executor.py:1139: in __init__ self._processes_management_lock = self._context.Lock() loky/backend/context.py:362: in Lock return Lock() loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError During handling of the above exception, another exception occurred: self = def test_child_retrieves_resource_tracker(self): # First simple fd retrieval check (see #200) # checking fd only work on posix for now if sys.platform != "win32": try: parent_rtracker_fd = get_rtracker_fd() executor = ProcessPoolExecutor(max_workers=2) child_rtracker_fd = executor.submit(get_rtracker_fd).result() assert child_rtracker_fd == parent_rtracker_fd finally: > executor.shutdown() E UnboundLocalError: cannot access local variable 'executor' where it is not associated with a value tests/test_resource_tracker.py:54: UnboundLocalError ______________ TestResourceTracker.test_resource_tracker[semlock] ______________ self = rtype = 'semlock' @pytest.mark.parametrize("rtype", ["file", "folder", "semlock"]) def test_resource_tracker(self, rtype): # # Check that killing process does not leak named resources # if (sys.platform == "win32") and rtype == "semlock": pytest.skip("no semlock on windows") cmd = f"""if 1: import time, os, tempfile, sys from loky.backend import resource_tracker from utils import create_resource for _ in range(2): rname = create_resource("{rtype}") resource_tracker.register(rname, "{rtype}") # give the resource_tracker time to register the new resource time.sleep(0.5) sys.stdout.write(f"{{rname}}\\n") sys.stdout.flush() time.sleep(10) """ env = {**os.environ, "PYTHONPATH": os.path.dirname(__file__)} p = subprocess.Popen( [sys.executable, "-c", cmd], stderr=subprocess.PIPE, stdout=subprocess.PIPE, env=env, text=True, ) name1 = p.stdout.readline().rstrip() name2 = p.stdout.readline().rstrip() # subprocess holding a reference to lock1 is still alive, so this call # should succeed > _resource_unlink(name1, rtype) tests/test_resource_tracker.py:137: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = '', rtype = 'semlock' def _resource_unlink(name, rtype): > resource_tracker._CLEANUP_FUNCS[rtype](name) E OSError: [Errno 22] Invalid argument tests/test_resource_tracker.py:23: OSError ________ TestResourceTracker.test_resource_tracker_refcounting[semlock] ________ self = rtype = 'semlock' @pytest.mark.parametrize("rtype", ["file", "folder", "semlock"]) def test_resource_tracker_refcounting(self, rtype): if sys.platform == "win32" and rtype == "semlock": pytest.skip("no semlock on windows") cmd = f"""if 1: import os import tempfile import time from loky.backend import resource_tracker from utils import resource_unlink, create_resource, resource_exists resource_tracker.VERBOSE = True try: name = create_resource("{rtype}") assert resource_exists(name, "{rtype}") from loky.backend.resource_tracker import _resource_tracker _resource_tracker.register(name, "{rtype}") _resource_tracker.register(name, "{rtype}") # Forget all information about the resource, but do not try to # remove it _resource_tracker.unregister(name, "{rtype}") time.sleep(1) assert resource_exists(name, "{rtype}") _resource_tracker.register(name, "{rtype}") _resource_tracker.register(name, "{rtype}") _resource_tracker.maybe_unlink(name, "{rtype}") time.sleep(1) assert resource_exists(name, "{rtype}") _resource_tracker.maybe_unlink(name, "{rtype}") for _ in range(100): if not resource_exists(name, "{rtype}"): break time.sleep(.1) else: raise AssertionError(f"{{name}} was not unlinked in time") finally: try: if resource_exists(name, "{rtype}"): resource_unlink(name, "{rtype}") except NameError: # "name" is not defined because create_resource has failed pass """ env = {**os.environ, "PYTHONPATH": os.path.dirname(__file__)} p = subprocess.run( [sys.executable, "-c", cmd], capture_output=True, env=env ) > assert p.returncode == 0, p.stderr E AssertionError: b'Traceback (most recent call last): E File "", line 11, in E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/tests/utils.py", line 29, in create_resource E _SemLock(1, 1, 1, name, False) E PermissionError: [Errno 13] Permission denied E ' E assert 1 == 0 E + where 1 = CompletedProcess(args=['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '-c', 'if 1:\n import os\n import tempfile\n import time\n from loky.backend import resource_tracker\n from utils import resource_unlink, create_resource, resource_exists\n\n resource_tracker.VERBOSE = True\n\n try:\n name = create_resource("semlock")\n assert resource_exists(name, "semlock")\n\n from loky.backend.resource_tracker import _resource_tracker\n _resource_tracker.register(name, "semlock")\n _resource_tracker.register(name, "semlock")\n\n # Forget all information about the resource, but do not try to\n # remove it\n _resource_tracker.unregister(name, "semlock")\n time.sleep(1)\n assert resource_exists(name, "semlock")\n\n _resource_tracker.register(name, "semlock")\n _resource_tracker.register(name, "semlock")\n _resource_tracker.maybe_unlink(name, "semlock")\n time.sleep(1)\n assert resource_exists(name, "semlock")\n\n _resource_tracker.maybe_unlink(name, "semlock")\n for _ in range(100):\n if not resource_exists(name, "semlock"):\n break\n time.sleep(.1)\n else:\n raise AssertionError(f"{name} was not unlinked in time")\n finally:\n try:\n if resource_exists(name, "semlock"):\n resource_unlink(name, "semlock")\n except NameError:\n # "name" is not defined because create_resource has failed\n pass\n '], returncode=1, stdout=b'', stderr=b'Traceback (most recent call last):\n File "", line 11, in \n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/tests/utils.py", line 29, in create_resource\n _SemLock(1, 1, 1, name, False)\nPermissionError: [Errno 13] Permission denied\n').returncode tests/test_resource_tracker.py:224: AssertionError _______________ TestResourceTracker.test_resource_tracker_sigint _______________ self = @pytest.mark.skipif( sys.platform == "win32", reason="Limited signal support on Windows" ) def test_resource_tracker_sigint(self): # Catchable signal (ignored by resource tracker) > self.check_resource_tracker_death(signal.SIGINT, False) tests/test_resource_tracker.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_resource_tracker.py:252: in check_resource_tracker_death sem = ctx.Semaphore() loky/backend/context.py:350: in Semaphore return Semaphore(value=value) loky/backend/synchronize.py:150: in __init__ SemLock.__init__(self, SEMAPHORE, value, SEM_VALUE_MAX) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 2147483647 name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ----------------------------- Captured stderr call ----------------------------- [DEBUG:MainProcess:MainThread] launching resource tracker: ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '-c', 'from loky.backend.resource_tracker import main; main(12, False)'] ______________ TestResourceTracker.test_resource_tracker_sigterm _______________ self = @pytest.mark.skipif( sys.platform == "win32", reason="Limited signal support on Windows" ) def test_resource_tracker_sigterm(self): # Catchable signal (ignored by resource tracker) > self.check_resource_tracker_death(signal.SIGTERM, False) tests/test_resource_tracker.py:283: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_resource_tracker.py:252: in check_resource_tracker_death sem = ctx.Semaphore() loky/backend/context.py:350: in Semaphore return Semaphore(value=value) loky/backend/synchronize.py:150: in __init__ SemLock.__init__(self, SEMAPHORE, value, SEM_VALUE_MAX) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 2147483647 name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ----------------------------- Captured stderr call ----------------------------- [DEBUG:MainProcess:MainThread] launching resource tracker: ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '-c', 'from loky.backend.resource_tracker import main; main(12, False)'] ______________ TestResourceTracker.test_resource_tracker_sigkill _______________ self = @pytest.mark.skipif( sys.platform == "win32", reason="Limited signal support on Windows" ) def test_resource_tracker_sigkill(self): # Uncatchable signal. > self.check_resource_tracker_death(signal.SIGKILL, True) tests/test_resource_tracker.py:290: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_resource_tracker.py:252: in check_resource_tracker_death sem = ctx.Semaphore() loky/backend/context.py:350: in Semaphore return Semaphore(value=value) loky/backend/synchronize.py:150: in __init__ SemLock.__init__(self, SEMAPHORE, value, SEM_VALUE_MAX) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 2147483647 name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ----------------------------- Captured stderr call ----------------------------- [DEBUG:MainProcess:MainThread] launching resource tracker: ['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '-c', 'from loky.backend.resource_tracker import main; main(12, False)'] _ TestResourceTracker.test_loky_process_inherit_multiprocessing_resource_tracker _ self = @pytest.mark.skipif( sys.version_info < (3, 8), reason="SharedMemory introduced in Python 3.8", ) def test_loky_process_inherit_multiprocessing_resource_tracker(self): cmd = """if 1: from loky import get_reusable_executor from multiprocessing.shared_memory import SharedMemory def mp_rtracker_getfd(): from multiprocessing.resource_tracker import ( _resource_tracker as mp_resource_tracker ) return mp_resource_tracker._fd if __name__ == '__main__': executor = get_reusable_executor(max_workers=1) # warm up f = executor.submit(id, 1).result() # loky forces the creation of the resource tracker at process # creation so that loky processes can inherit its file descriptor. parent_fd = mp_rtracker_getfd() child_fd = executor.submit(mp_rtracker_getfd).result() assert child_fd == parent_fd # non-regression test for #242: unlinking in a loky process a # shared_memory segment tracked by multiprocessing and created its # parent should not generate warnings. shm = SharedMemory(create=True, size=10) f = executor.submit(shm.unlink).result() """ p = subprocess.run( [sys.executable, "-c", cmd], capture_output=True, text=True ) assert not p.stdout, p.stdout > assert not p.stderr, p.stderr E AssertionError: Traceback (most recent call last): E File "", line 13, in E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/reusable_executor.py", line 89, in get_reusable_executor E _executor, _ = _ReusablePoolExecutor.get_reusable_executor( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/reusable_executor.py", line 182, in get_reusable_executor E _executor = executor = cls( E ^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/reusable_executor.py", line 118, in __init__ E super().__init__( E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/process_executor.py", line 1139, in __init__ E self._processes_management_lock = self._context.Lock() E ^^^^^^^^^^^^^^^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/context.py", line 362, in Lock E return Lock() E ^^^^^^ E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/synchronize.py", line 192, in __init__ E super().__init__(SEMAPHORE, 1, 1) E File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/synchronize.py", line 72, in __init__ E self._semlock = _SemLock( E ^^^^^^^^^ E PermissionError: [Errno 13] Permission denied E E assert not 'Traceback (most recent call last):\n File "", line 13, in \n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/reusable_executor.py", line 89, in get_reusable_executor\n _executor, _ = _ReusablePoolExecutor.get_reusable_executor(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/reusable_executor.py", line 182, in get_reusable_executor\n _executor = executor = cls(\n ^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/reusable_executor.py", line 118, in __init__\n super().__init__(\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/process_executor.py", line 1139, in __init__\n self._processes_management_lock = self._context.Lock()\n ^^^^^^^^^^^^^^^^^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/context.py", line 362, in Lock\n return Lock()\n ^^^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/synchronize.py", line 192, in __init__\n super().__init__(SEMAPHORE, 1, 1)\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/synchronize.py", line 72, in __init__\n self._semlock = _SemLock(\n ^^^^^^^^^\nPermissionError: [Errno 13] Permission denied\n' E + where 'Traceback (most recent call last):\n File "", line 13, in \n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/reusable_executor.py", line 89, in get_reusable_executor\n _executor, _ = _ReusablePoolExecutor.get_reusable_executor(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/reusable_executor.py", line 182, in get_reusable_executor\n _executor = executor = cls(\n ^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/reusable_executor.py", line 118, in __init__\n super().__init__(\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/process_executor.py", line 1139, in __init__\n self._processes_management_lock = self._context.Lock()\n ^^^^^^^^^^^^^^^^^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/context.py", line 362, in Lock\n return Lock()\n ^^^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/synchronize.py", line 192, in __init__\n super().__init__(SEMAPHORE, 1, 1)\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/synchronize.py", line 72, in __init__\n self._semlock = _SemLock(\n ^^^^^^^^^\nPermissionError: [Errno 13] Permission denied\n' = CompletedProcess(args=['/home/udu/aports/community/py3-loky/src/loky-3.5.3/.testenv/bin/python3', '-c', "if 1:\n from loky import get_reusable_executor\n from multiprocessing.shared_memory import SharedMemory\n\n def mp_rtracker_getfd():\n from multiprocessing.resource_tracker import (\n _resource_tracker as mp_resource_tracker\n )\n return mp_resource_tracker._fd\n\n\n if __name__ == '__main__':\n executor = get_reusable_executor(max_workers=1)\n # warm up\n f = executor.submit(id, 1).result()\n\n # loky forces the creation of the resource tracker at process\n # creation so that loky processes can inherit its file descriptor.\n parent_fd = mp_rtracker_getfd()\n child_fd = executor.submit(mp_rtracker_getfd).result()\n assert child_fd == parent_fd\n\n # non-regression test for #242: unlinking in a loky process a\n # shared_memory segment tracked by multiprocessing and created its\n # parent should not generate warnings.\n shm = SharedMemory(create=True, size=10)\n f...\n _executor, _ = _ReusablePoolExecutor.get_reusable_executor(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/reusable_executor.py", line 182, in get_reusable_executor\n _executor = executor = cls(\n ^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/reusable_executor.py", line 118, in __init__\n super().__init__(\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/process_executor.py", line 1139, in __init__\n self._processes_management_lock = self._context.Lock()\n ^^^^^^^^^^^^^^^^^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/context.py", line 362, in Lock\n return Lock()\n ^^^^^^\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/synchronize.py", line 192, in __init__\n super().__init__(SEMAPHORE, 1, 1)\n File "/home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/synchronize.py", line 72, in __init__\n self._semlock = _SemLock(\n ^^^^^^^^^\nPermissionError: [Errno 13] Permission denied\n').stderr tests/test_resource_tracker.py:330: AssertionError _____________________________ test_semlock_failure _____________________________ @pytest.mark.skipif(sys.platform == "win32", reason="UNIX test") def test_semlock_failure(): from loky.backend.synchronize import SemLock, sem_unlink name = "loky-test-semlock" try: sem_unlink(name) except FileNotFoundError: pass try: > sl = SemLock(0, 1, 1, name=name) tests/test_synchronize.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 0 value = 1, maxvalue = 1, name = 'loky-test-semlock' def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) except FileExistsError: # pragma: no cover pass else: break else: # pragma: no cover raise FileExistsError("cannot find name for semaphore") else: > self._semlock = _SemLock(kind, value, maxvalue, name, unlink_now) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:82: PermissionError During handling of the above exception, another exception occurred: @pytest.mark.skipif(sys.platform == "win32", reason="UNIX test") def test_semlock_failure(): from loky.backend.synchronize import SemLock, sem_unlink name = "loky-test-semlock" try: sem_unlink(name) except FileNotFoundError: pass try: sl = SemLock(0, 1, 1, name=name) assert sl.name == name with pytest.raises(FileExistsError): SemLock(0, 1, 1, name=name) finally: # Always clean-up the test semaphore to make this test independent of # previous runs (successful or not). > sem_unlink(name) E FileNotFoundError: [Errno 2] No such file or directory tests/test_synchronize.py:37: FileNotFoundError ______________________________ TestLock.test_lock ______________________________ self = def test_lock(self): > lock = loky_context.Lock() tests/test_synchronize.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:362: in Lock return Lock() loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _____________________________ TestLock.test_rlock ______________________________ self = def test_rlock(self): > lock = loky_context.RLock() tests/test_synchronize.py:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:368: in RLock return RLock() loky/backend/synchronize.py:218: in __init__ super().__init__(RECURSIVE_MUTEX, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 0, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError __________________________ TestLock.test_lock_context __________________________ self = def test_lock_context(self): > with loky_context.Lock(): tests/test_synchronize.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:362: in Lock return Lock() loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _________________________ TestSemaphore.test_semaphore _________________________ self = def test_semaphore(self): > sem = loky_context.Semaphore(2) tests/test_synchronize.py:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:350: in Semaphore return Semaphore(value=value) loky/backend/synchronize.py:150: in __init__ SemLock.__init__(self, SEMAPHORE, value, SEM_VALUE_MAX) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 2, maxvalue = 2147483647 name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _____________________ TestSemaphore.test_bounded_semaphore _____________________ self = @pytest.mark.skipif( sys.platform == "darwin", reason="OSX have borken `get_value`" ) def test_bounded_semaphore(self): > sem = loky_context.BoundedSemaphore(2) tests/test_synchronize.py:109: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:356: in BoundedSemaphore return BoundedSemaphore(value) loky/backend/synchronize.py:172: in __init__ SemLock.__init__(self, SEMAPHORE, value, value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <[AttributeError("'BoundedSemaphore' object has no attribute '_semlock'") raised in repr()] BoundedSemaphore object at 0x77ea1547ef00> kind = 1, value = 2, maxvalue = 2, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError __________________________ TestSemaphore.test_timeout __________________________ self = def test_timeout(self): > sem = loky_context.Semaphore(0) tests/test_synchronize.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:350: in Semaphore return Semaphore(value=value) loky/backend/synchronize.py:150: in __init__ SemLock.__init__(self, SEMAPHORE, value, SEM_VALUE_MAX) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 0, maxvalue = 2147483647 name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError __________________________ TestCondition.test_notify ___________________________ self = def test_notify(self): > cond = loky_context.Condition() tests/test_synchronize.py:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:374: in Condition return Condition(lock) loky/backend/synchronize.py:245: in __init__ self._lock = lock or RLock() loky/backend/synchronize.py:218: in __init__ super().__init__(RECURSIVE_MUTEX, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 0, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ________________________ TestCondition.test_notify_all _________________________ self = def test_notify_all(self): > cond = loky_context.Condition() tests/test_synchronize.py:205: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:374: in Condition return Condition(lock) loky/backend/synchronize.py:245: in __init__ self._lock = lock or RLock() loky/backend/synchronize.py:218: in __init__ super().__init__(RECURSIVE_MUTEX, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 0, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError __________________________ TestCondition.test_timeout __________________________ self = def test_timeout(self): > cond = loky_context.Condition() tests/test_synchronize.py:278: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:374: in Condition return Condition(lock) loky/backend/synchronize.py:245: in __init__ self._lock = lock or RLock() loky/backend/synchronize.py:218: in __init__ super().__init__(RECURSIVE_MUTEX, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 0, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError __________________________ TestCondition.test_waitfor __________________________ self = def test_waitfor(self): # based on test in test/lock_tests.py > cond = loky_context.Condition() tests/test_synchronize.py:298: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:374: in Condition return Condition(lock) loky/backend/synchronize.py:245: in __init__ self._lock = lock or RLock() loky/backend/synchronize.py:218: in __init__ super().__init__(RECURSIVE_MUTEX, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 0, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _____________________________ TestEvent.test_event _____________________________ self = def test_event(self): > event = loky_context.Event() tests/test_synchronize.py:364: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/backend/context.py:380: in Event return Event() loky/backend/synchronize.py:379: in __init__ self._cond = Condition(Lock()) loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _________________ TestTimeoutExecutor.test_worker_timeout_mock _________________ self = def test_worker_timeout_mock(self): timeout = 0.001 context = get_context() > executor = ProcessPoolExecutor( max_workers=4, context=context, timeout=timeout ) tests/test_worker_timeout.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/process_executor.py:1139: in __init__ self._processes_management_lock = self._context.Lock() loky/backend/context.py:362: in Lock return Lock() loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError _____ TestTimeoutExecutor.test_worker_timeout_with_slowly_pickling_objects _____ self = n_tasks = 5 def test_worker_timeout_with_slowly_pickling_objects(self, n_tasks=5): """Check that the worker timeout can be low without deadlocking In particular if dispatching call items to the queue is slow because of pickling large arguments, the executor should ensure that there is an appropriate amount of workers to move one and not get stalled. """ with pytest.warns( UserWarning, match="^A worker stopped while some jobs" ): for timeout, delay in [ (0.01, 0.02), (0.01, 0.1), (0.1, 0.1), (0.001, 0.1), ]: > executor = get_reusable_executor( max_workers=2, timeout=timeout ) tests/test_worker_timeout.py:110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/reusable_executor.py:89: in get_reusable_executor _executor, _ = _ReusablePoolExecutor.get_reusable_executor( loky/reusable_executor.py:182: in get_reusable_executor _executor = executor = cls( loky/reusable_executor.py:118: in __init__ super().__init__( loky/process_executor.py:1139: in __init__ self._processes_management_lock = self._context.Lock() loky/backend/context.py:362: in Lock return Lock() loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError During handling of the above exception, another exception occurred: self = n_tasks = 5 def test_worker_timeout_with_slowly_pickling_objects(self, n_tasks=5): """Check that the worker timeout can be low without deadlocking In particular if dispatching call items to the queue is slow because of pickling large arguments, the executor should ensure that there is an appropriate amount of workers to move one and not get stalled. """ > with pytest.warns( UserWarning, match="^A worker stopped while some jobs" ): E Failed: DID NOT WARN. No warnings of type (,) were emitted. E Emitted warnings: []. tests/test_worker_timeout.py:101: Failed ----------------------------- Captured stderr call ----------------------------- [DEBUG:MainProcess:MainThread] Create a executor with max_workers=2. _________ TestTimeoutExecutor.test_worker_timeout_shutdown_no_deadlock _________ self = def test_worker_timeout_shutdown_no_deadlock(self): """Check that worker timeout don't cause deadlock when shutting down.""" with warnings.catch_warnings(record=True) as record: > with get_reusable_executor(max_workers=2, timeout=0.001) as e: tests/test_worker_timeout.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ loky/reusable_executor.py:89: in get_reusable_executor _executor, _ = _ReusablePoolExecutor.get_reusable_executor( loky/reusable_executor.py:182: in get_reusable_executor _executor = executor = cls( loky/reusable_executor.py:118: in __init__ super().__init__( loky/process_executor.py:1139: in __init__ self._processes_management_lock = self._context.Lock() loky/backend/context.py:362: in Lock return Lock() loky/backend/synchronize.py:192: in __init__ super().__init__(SEMAPHORE, 1, 1) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1, name = None def __init__(self, kind, value, maxvalue, name=None): # unlink_now is only used on win32 or when we are using fork. unlink_now = False if name is None: # Try to find an unused name for the SemLock instance. for _ in range(100): try: > self._semlock = _SemLock( kind, value, maxvalue, SemLock._make_name(), unlink_now ) E PermissionError: [Errno 13] Permission denied loky/backend/synchronize.py:72: PermissionError ----------------------------- Captured stderr call ----------------------------- [DEBUG:MainProcess:MainThread] Create a executor with max_workers=2. =============================== warnings summary =============================== tests/test_loky_module.py::test_cpu_count /home/udu/aports/community/py3-loky/src/loky-3.5.3/loky/backend/context.py:131: UserWarning: Could not find the number of physical cores for the following reason: found 0 physical cores < 1 Returning the number of logical cores instead. You can silence this warning by setting LOKY_MAX_CPU_COUNT to the number of cores you want to use. warnings.warn( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_serialization_function_from_main FAILED tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_serialization_class_from_main FAILED tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_cloudpickle_flag_wrapper FAILED tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_set_loky_pickler[None] FAILED tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_set_loky_pickler[''] FAILED tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_set_loky_pickler['cloudpickle'] FAILED tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_set_loky_pickler['pickle'] FAILED tests/test_loky_backend.py::TestLokyBackend::test_process[loky] - Perm... FAILED tests/test_loky_backend.py::TestLokyBackend::test_process[loky_init_main] FAILED tests/test_loky_backend.py::TestLokyBackend::test_socket_queue - Permi... FAILED tests/test_loky_backend.py::TestLokyBackend::test_connection_queue - P... FAILED tests/test_loky_backend.py::TestLokyBackend::test_child_env_process - ... FAILED tests/test_loky_backend.py::TestLokyBackend::test_sentinel - Permissio... FAILED tests/test_loky_backend.py::test_default_subcontext[loky] - ValueError... FAILED tests/test_loky_backend.py::test_default_subcontext[loky_init_main] - ... FAILED tests/test_loky_backend.py::test_default_subcontext[spawn] - ValueErro... FAILED tests/test_loky_backend.py::test_default_subcontext[fork] - ValueError... FAILED tests/test_loky_backend.py::test_default_subcontext[forkserver] - Valu... FAILED tests/test_loky_module.py::test_cpu_count_psutil_affinity - psutil.NoS... FAILED tests/test_resource_tracker.py::TestResourceTracker::test_resource_utils[semlock] FAILED tests/test_resource_tracker.py::TestResourceTracker::test_child_retrieves_resource_tracker FAILED tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker[semlock] FAILED tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker_refcounting[semlock] FAILED tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker_sigint FAILED tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker_sigterm FAILED tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker_sigkill FAILED tests/test_resource_tracker.py::TestResourceTracker::test_loky_process_inherit_multiprocessing_resource_tracker FAILED tests/test_synchronize.py::test_semlock_failure - FileNotFoundError: [... FAILED tests/test_synchronize.py::TestLock::test_lock - PermissionError: [Err... FAILED tests/test_synchronize.py::TestLock::test_rlock - PermissionError: [Er... FAILED tests/test_synchronize.py::TestLock::test_lock_context - PermissionErr... FAILED tests/test_synchronize.py::TestSemaphore::test_semaphore - PermissionE... FAILED tests/test_synchronize.py::TestSemaphore::test_bounded_semaphore - Per... FAILED tests/test_synchronize.py::TestSemaphore::test_timeout - PermissionErr... FAILED tests/test_synchronize.py::TestCondition::test_notify - PermissionErro... FAILED tests/test_synchronize.py::TestCondition::test_notify_all - Permission... FAILED tests/test_synchronize.py::TestCondition::test_timeout - PermissionErr... FAILED tests/test_synchronize.py::TestCondition::test_waitfor - PermissionErr... FAILED tests/test_synchronize.py::TestEvent::test_event - PermissionError: [E... FAILED tests/test_worker_timeout.py::TestTimeoutExecutor::test_worker_timeout_mock FAILED tests/test_worker_timeout.py::TestTimeoutExecutor::test_worker_timeout_with_slowly_pickling_objects FAILED tests/test_worker_timeout.py::TestTimeoutExecutor::test_worker_timeout_shutdown_no_deadlock ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_run_after_shutdown ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_with_pickle_error ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_with_sys_exit_at_pickle ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_interpreter_shutdown ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_hang_issue12364 ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_processes_terminate ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_processes_terminate_on_executor_gc ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_processes_crash_handling_after_executor_gc ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_context_manager_shutdown ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_del_shutdown ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_no_wait ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_deadlock_pickle ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_hang_issue39205 ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_and_kill_workers ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_completed ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_completed_some_already_completed ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_exception ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_exception_some_already_complete ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_exception_one_already_failed ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_all_completed ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_timeout ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverAsCompleted::test_no_timeout ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverAsCompleted::test_zero_timeout ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverAsCompleted::test_duplicate_futures ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_submit ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_submit_keyword ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_map ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_map_exception ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_map_timeout ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_shutdown_race_issue12456 ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_no_stale_references ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_max_workers_negative ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_killed_child ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_map_chunksize ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_traceback ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_thread_safety ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_submit_from_callback ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_worker_timeout ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_serialization ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_max_depth[True] ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_max_depth[False] ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_no_failure_on_large_data_send ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_memory_leak_protection ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_reference_cycle_collection ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_exited_child ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_child_env_executor ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_viztracer_profiler ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_viztracer_profiler_with_custom_init ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_exception_cause_with_tblib ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_no_deprecation_warning_is_raised_on_fork ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_run_after_shutdown ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_with_pickle_error ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_with_sys_exit_at_pickle ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_interpreter_shutdown ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_hang_issue12364 ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_processes_terminate ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_processes_terminate_on_executor_gc ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_processes_crash_handling_after_executor_gc ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_context_manager_shutdown ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_del_shutdown ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_no_wait ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_deadlock_pickle ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_hang_issue39205 ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_and_kill_workers ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_completed ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_completed_some_already_completed ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_exception ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_exception_some_already_complete ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_exception_one_already_failed ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_all_completed ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_timeout ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyAsCompleted::test_no_timeout ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyAsCompleted::test_zero_timeout ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyAsCompleted::test_duplicate_futures ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_submit ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_submit_keyword ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_map ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_map_exception ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_map_timeout ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_shutdown_race_issue12456 ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_no_stale_references ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_max_workers_negative ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_killed_child ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_map_chunksize ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_traceback ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_thread_safety ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_submit_from_callback ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_worker_timeout ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_serialization ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_max_depth[True] ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_max_depth[False] ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_no_failure_on_large_data_send ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_memory_leak_protection ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_reference_cycle_collection ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_exited_child ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_child_env_executor ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_viztracer_profiler ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_viztracer_profiler_with_custom_init ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_exception_cause_with_tblib ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_no_deprecation_warning_is_raised_on_fork ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_run_after_shutdown ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_with_pickle_error ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_with_sys_exit_at_pickle ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_interpreter_shutdown ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_hang_issue12364 ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_processes_terminate ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_processes_terminate_on_executor_gc ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_processes_crash_handling_after_executor_gc ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_context_manager_shutdown ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_del_shutdown ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_no_wait ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_deadlock_pickle ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_hang_issue39205 ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_and_kill_workers ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_completed ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_completed_some_already_completed ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_exception ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_exception_some_already_complete ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_exception_one_already_failed ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_all_completed ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_timeout ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnAsCompleted::test_no_timeout ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnAsCompleted::test_zero_timeout ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnAsCompleted::test_duplicate_futures ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_submit ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_submit_keyword ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_map ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_map_exception ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_map_timeout ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_shutdown_race_issue12456 ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_no_stale_references ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_max_workers_negative ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_killed_child ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_map_chunksize ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_traceback ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_thread_safety ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_submit_from_callback ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_worker_timeout ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_serialization ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_max_depth[True] ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_max_depth[False] ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_no_failure_on_large_data_send ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_memory_leak_protection ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_reference_cycle_collection ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_exited_child ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_child_env_executor ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_viztracer_profiler ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_viztracer_profiler_with_custom_init ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_exception_cause_with_tblib ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_no_deprecation_warning_is_raised_on_fork = 42 failed, 42 passed, 6 skipped, 5 deselected, 1 warning, 150 errors in 30.28s = [INFO:MainProcess:MainThread] process shutting down [DEBUG:MainProcess:MainThread] running all "atexit" finalizers with priority >= 0 [DEBUG:MainProcess:MainThread] running the remaining "atexit" finalizers >>> ERROR: py3-loky: check failed >>> py3-loky: Uninstalling dependencies... (1/25) Purging .makedepends-py3-loky (20251012.200522) (2/25) Purging py3-cloudpickle-pyc (3.1.1-r0) (3/25) Purging py3-cloudpickle (3.1.1-r0) (4/25) Purging py3-gpep517-pyc (19-r0) (5/25) Purging py3-gpep517 (19-r0) (6/25) Purging py3-installer-pyc (0.7.0-r2) (7/25) Purging py3-installer (0.7.0-r2) (8/25) Purging py3-setuptools-pyc (80.9.0-r0) (9/25) Purging py3-setuptools (80.9.0-r0) (10/25) Purging py3-wheel-pyc (0.46.1-r0) (11/25) Purging py3-wheel (0.46.1-r0) (12/25) Purging py3-pytest-pyc (8.3.5-r0) (13/25) Purging py3-pytest (8.3.5-r0) (14/25) Purging py3-iniconfig-pyc (2.1.0-r0) (15/25) Purging py3-iniconfig (2.1.0-r0) (16/25) Purging py3-packaging-pyc (25.0-r0) (17/25) Purging py3-packaging (25.0-r0) (18/25) Purging py3-parsing-pyc (3.2.3-r0) (19/25) Purging py3-parsing (3.2.3-r0) (20/25) Purging py3-pluggy-pyc (1.5.0-r0) (21/25) Purging py3-pluggy (1.5.0-r0) (22/25) Purging py3-py-pyc (1.11.0-r4) (23/25) Purging py3-py (1.11.0-r4) (24/25) Purging py3-psutil-pyc (7.0.0-r0) (25/25) Purging py3-psutil (7.0.0-r0) Executing busybox-1.37.0-r19.trigger OK: 296 MiB in 89 packages