Fix multiprocessing testcase#7743
Conversation
Need to force context re-creating inside testcase otherwise runtime exception raises:
```
def set_start_method(self, method, force=False):
if self._actual_context is not None and not force:
> raise RuntimeError('context has already been set')
E RuntimeError: context has already been set
```
Signed-off-by: Artem Kuzmitckii <artem.kuzmitckii@amd.com>
Signed-off-by: Artem Kuzmitckii <artem.kuzmitckii@amd.com>
|
@sfc-gh-truwase please have a look |
sure, on my side it’s consistently reproducible. |
|
hi @sfc-gh-truwase please approve if no objections |
Need to force context re-creating inside testcase otherwise runtime
exception raises:
```
def set_start_method(self, method, force=False):
if self._actual_context is not None and not force:
> raise RuntimeError('context has already been set')
E RuntimeError: context has already been set
```
Command for verification:
`pytest -v tests/unit/runtime/test_ds_initialize.py`
---------
Signed-off-by: Artem Kuzmitckii <artem.kuzmitckii@amd.com>
Co-authored-by: Logan Adams <114770087+loadams@users.noreply.github.com>
Signed-off-by: Phalani Paladugu <mailofphalani@gmail.com>
Need to force context re-creating inside testcase otherwise runtime exception raises:
Command for verification:
pytest -v tests/unit/runtime/test_ds_initialize.py