MPI helper functionality¶
- pytools.mpi.pytest_raises_on_rank(my_rank: int, fail_rank: int, expected_exception: Type[BaseException] | Tuple[Type[BaseException], ...]) Generator[AbstractContextManager, None, None] [source]¶
Like
pytest.raises()
, but only expect an exception on rank fail_rank.