*** This log is abridged to its last 1000 lines: 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 0x70de1902ba10>, 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 - ValueError: Non-zero return code: 1. FAILED tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_serialization_class_from_main - ValueError: Non-zero return code: 1. FAILED tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_cloudpickle_flag_wrapper - ValueError: Non-zero return code: 1. FAILED tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_set_loky_pickler[None] - ValueError: Non-zero return code: 1. FAILED tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_set_loky_pickler[''] - ValueError: Non-zero return code: 1. FAILED tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_set_loky_pickler['cloudpickle'] - ValueError: Non-zero return code: 1. FAILED tests/test_cloudpickle_wrapper.py::TestCloudpickleWrapper::test_set_loky_pickler['pickle'] - AssertionError: Regex pattern did not match. FAILED tests/test_loky_backend.py::TestLokyBackend::test_process[loky] - PermissionError: [Errno 13] Permission denied FAILED tests/test_loky_backend.py::TestLokyBackend::test_process[loky_init_main] - PermissionError: [Errno 13] Permission denied FAILED tests/test_loky_backend.py::TestLokyBackend::test_socket_queue - PermissionError: [Errno 13] Permission denied FAILED tests/test_loky_backend.py::TestLokyBackend::test_connection_queue - PermissionError: [Errno 13] Permission denied FAILED tests/test_loky_backend.py::TestLokyBackend::test_child_env_process - PermissionError: [Errno 13] Permission denied FAILED tests/test_loky_backend.py::TestLokyBackend::test_sentinel - PermissionError: [Errno 13] Permission denied FAILED tests/test_loky_backend.py::test_default_subcontext[loky] - ValueError: Non-zero return code: 1. FAILED tests/test_loky_backend.py::test_default_subcontext[loky_init_main] - ValueError: Non-zero return code: 1. FAILED tests/test_loky_backend.py::test_default_subcontext[spawn] - ValueError: Non-zero return code: 1. FAILED tests/test_loky_backend.py::test_default_subcontext[fork] - ValueError: Non-zero return code: 1. FAILED tests/test_loky_backend.py::test_default_subcontext[forkserver] - ValueError: Non-zero return code: 1. FAILED tests/test_loky_module.py::test_cpu_count_psutil_affinity - psutil.NoSuchProcess: process PID not found (pid=274242) FAILED tests/test_resource_tracker.py::TestResourceTracker::test_resource_utils[semlock] - PermissionError: [Errno 13] Permission denied FAILED tests/test_resource_tracker.py::TestResourceTracker::test_child_retrieves_resource_tracker - UnboundLocalError: cannot access local variable 'executor' where it is not associated with a value FAILED tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker[semlock] - OSError: [Errno 22] Invalid argument FAILED tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker_refcounting[semlock] - AssertionError: b'Traceback (most recent call last): FAILED tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker_sigint - PermissionError: [Errno 13] Permission denied FAILED tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker_sigterm - PermissionError: [Errno 13] Permission denied FAILED tests/test_resource_tracker.py::TestResourceTracker::test_resource_tracker_sigkill - PermissionError: [Errno 13] Permission denied FAILED tests/test_resource_tracker.py::TestResourceTracker::test_loky_process_inherit_multiprocessing_resource_tracker - AssertionError: Traceback (most recent call last): FAILED tests/test_synchronize.py::test_semlock_failure - FileNotFoundError: [Errno 2] No such file or directory FAILED tests/test_synchronize.py::TestLock::test_lock - PermissionError: [Errno 13] Permission denied FAILED tests/test_synchronize.py::TestLock::test_rlock - PermissionError: [Errno 13] Permission denied FAILED tests/test_synchronize.py::TestLock::test_lock_context - PermissionError: [Errno 13] Permission denied FAILED tests/test_synchronize.py::TestSemaphore::test_semaphore - PermissionError: [Errno 13] Permission denied FAILED tests/test_synchronize.py::TestSemaphore::test_bounded_semaphore - PermissionError: [Errno 13] Permission denied FAILED tests/test_synchronize.py::TestSemaphore::test_timeout - PermissionError: [Errno 13] Permission denied FAILED tests/test_synchronize.py::TestCondition::test_notify - PermissionError: [Errno 13] Permission denied FAILED tests/test_synchronize.py::TestCondition::test_notify_all - PermissionError: [Errno 13] Permission denied FAILED tests/test_synchronize.py::TestCondition::test_timeout - PermissionError: [Errno 13] Permission denied FAILED tests/test_synchronize.py::TestCondition::test_waitfor - PermissionError: [Errno 13] Permission denied FAILED tests/test_synchronize.py::TestEvent::test_event - PermissionError: [Errno 13] Permission denied FAILED tests/test_worker_timeout.py::TestTimeoutExecutor::test_worker_timeout_mock - PermissionError: [Errno 13] Permission denied FAILED tests/test_worker_timeout.py::TestTimeoutExecutor::test_worker_timeout_with_slowly_pickling_objects - Failed: DID NOT WARN. No warnings of type (,) were emitted. FAILED tests/test_worker_timeout.py::TestTimeoutExecutor::test_worker_timeout_shutdown_no_deadlock - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_run_after_shutdown - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_with_pickle_error - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_with_sys_exit_at_pickle - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_interpreter_shutdown - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_hang_issue12364 - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_processes_terminate - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_processes_terminate_on_executor_gc - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_processes_crash_handling_after_executor_gc - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_context_manager_shutdown - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_del_shutdown - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_no_wait - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_deadlock_pickle - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_hang_issue39205 - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverShutdown::test_shutdown_and_kill_workers - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_completed - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_completed_some_already_completed - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_exception - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_exception_some_already_complete - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_first_exception_one_already_failed - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_all_completed - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverWait::test_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverAsCompleted::test_no_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverAsCompleted::test_zero_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverAsCompleted::test_duplicate_futures - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_submit - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_submit_keyword - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_map - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_map_exception - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_map_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_shutdown_race_issue12456 - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_no_stale_references - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_max_workers_negative - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_killed_child - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_map_chunksize - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_traceback - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_thread_safety - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_submit_from_callback - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_worker_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_serialization - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_max_depth[True] - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_max_depth[False] - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_no_failure_on_large_data_send - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_memory_leak_protection - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_reference_cycle_collection - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_exited_child - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_child_env_executor - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_viztracer_profiler - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_viztracer_profiler_with_custom_init - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_exception_cause_with_tblib - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_forkserver.py::TestsProcessPoolForkserverExecutor::test_no_deprecation_warning_is_raised_on_fork - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_run_after_shutdown - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_with_pickle_error - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_with_sys_exit_at_pickle - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_interpreter_shutdown - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_hang_issue12364 - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_processes_terminate - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_processes_terminate_on_executor_gc - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_processes_crash_handling_after_executor_gc - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_context_manager_shutdown - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_del_shutdown - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_no_wait - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_deadlock_pickle - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_hang_issue39205 - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyShutdown::test_shutdown_and_kill_workers - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_completed - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_completed_some_already_completed - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_exception - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_exception_some_already_complete - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_first_exception_one_already_failed - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_all_completed - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyWait::test_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyAsCompleted::test_no_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyAsCompleted::test_zero_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyAsCompleted::test_duplicate_futures - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_submit - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_submit_keyword - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_map - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_map_exception - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_map_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_shutdown_race_issue12456 - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_no_stale_references - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_max_workers_negative - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_killed_child - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_map_chunksize - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_traceback - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_thread_safety - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_submit_from_callback - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_worker_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_serialization - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_max_depth[True] - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_max_depth[False] - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_no_failure_on_large_data_send - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_memory_leak_protection - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_reference_cycle_collection - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_exited_child - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_child_env_executor - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_viztracer_profiler - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_viztracer_profiler_with_custom_init - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_exception_cause_with_tblib - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_loky.py::TestsProcessPoolLokyExecutor::test_no_deprecation_warning_is_raised_on_fork - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_run_after_shutdown - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_with_pickle_error - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_with_sys_exit_at_pickle - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_interpreter_shutdown - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_hang_issue12364 - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_processes_terminate - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_processes_terminate_on_executor_gc - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_processes_crash_handling_after_executor_gc - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_context_manager_shutdown - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_del_shutdown - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_no_wait - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_deadlock_pickle - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_hang_issue39205 - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnShutdown::test_shutdown_and_kill_workers - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_completed - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_completed_some_already_completed - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_exception - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_exception_some_already_complete - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_first_exception_one_already_failed - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_all_completed - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnWait::test_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnAsCompleted::test_no_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnAsCompleted::test_zero_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnAsCompleted::test_duplicate_futures - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_submit - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_submit_keyword - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_map - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_map_exception - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_map_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_shutdown_race_issue12456 - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_no_stale_references - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_max_workers_negative - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_killed_child - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_map_chunksize - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_traceback - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_thread_safety - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_submit_from_callback - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_worker_timeout - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_serialization - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_max_depth[True] - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_max_depth[False] - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_no_failure_on_large_data_send - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_memory_leak_protection - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_reference_cycle_collection - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_exited_child - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_child_env_executor - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_viztracer_profiler - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_viztracer_profiler_with_custom_init - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_exception_cause_with_tblib - PermissionError: [Errno 13] Permission denied ERROR tests/test_process_executor_spawn.py::TestsProcessPoolSpawnExecutor::test_no_deprecation_warning_is_raised_on_fork - PermissionError: [Errno 13] Permission denied =============================================================================================================== 42 failed, 42 passed, 6 skipped, 5 deselected, 1 warning, 150 errors in 30.40s =============================================================================================================== [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.202823) (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