Set multiprocessing start method to 'fork' if not on Linux.
()
| 31 | |
| 32 | |
| 33 | def set_multiprocessing_start_method(): |
| 34 | """Set multiprocessing start method to 'fork' if not on Linux.""" |
| 35 | if platform.system() != "Linux": |
| 36 | try: |
| 37 | multiprocessing.set_start_method("fork") |
| 38 | except RuntimeError: |
| 39 | # The method is already set |
| 40 | pass |
| 41 | |
| 42 | |
| 43 | class test_class_based_tasks: |
no outgoing calls
no test coverage detected