You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there,
Running inside Github actions, using Poetry, I get this error:
packages/unittest_parallel/main.py", line 114, in main
results = pool.map(test_manager.run_tests, test_suites)
File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/multiprocessing/pool.py", line 367, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/multiprocessing/pool.py", line 774, in get
raise self._value
File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/multiprocessing/pool.py", line 540, in _handle_tasks
put(task)
File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/multiprocessing/connection.py", line 206, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/multiprocessing/reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
AttributeError: Can't pickle local object 'lazy_call.<locals>._handler'
I quick search came up with this which suggests changing the process forking type from spawn to fork.
I tried changing multiprocessing_context = multiprocessing.get_context(method='spawn') to fork but it didn't help.
I should mention that this is running on a runner using arm64, not x86_64...
Any thoughts on this?
The command line was very simple:
poetry run unittest-parallel -s <some_dir_with_tests>
thanks!
The text was updated successfully, but these errors were encountered:
Hey there,
Running inside Github actions, using Poetry, I get this error:
I quick search came up with this which suggests changing the process forking type from spawn to fork.
I tried changing
multiprocessing_context = multiprocessing.get_context(method='spawn')
tofork
but it didn't help.I should mention that this is running on a runner using arm64, not x86_64...
Any thoughts on this?
The command line was very simple:
poetry run unittest-parallel -s <some_dir_with_tests>
thanks!
The text was updated successfully, but these errors were encountered: