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