achimnol / aiotools

Idiomatic asyncio utilties
https://aiotools.readthedocs.io
MIT License
153 stars 11 forks source link

Update test cases to work with multiprocessing start_method = "spawn" #12

Closed achimnol closed 3 years ago

achimnol commented 4 years ago

Currently the following 4 cases are failing on macOS since Python 3.8 as multiprocessing's default start method has changed "spawn":

To make them working, we need to allow passing extra arguments to the user-provided main functions and rewrite the tests to use module-defined inner main functions so that those could be picklable.

achimnol commented 3 years ago

Now it's resolved by using GitHub Actions and os.setpgrp().