Skip to content

Conversation

@k-artem
Copy link
Contributor

@k-artem k-artem commented Dec 22, 2025

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

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>
@k-artem
Copy link
Contributor Author

k-artem commented Jan 5, 2026

@sfc-gh-truwase please have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant