Skip to content

Commit

Permalink
Added pytest.mark to skip test if mpi4py isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
gmao-ckung committed Dec 13, 2024
1 parent fb4e740 commit 34f82fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/mpi/test_mpi_all_reduce_sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def communicator(cube_partitioner):
)


@pytest.mark.skipif(
MPI is None, reason="mpi4py is not available or pytest was not run in parallel"
)
def test_all_reduce_sum(
communicator,
):
Expand Down

0 comments on commit 34f82fb

Please sign in to comment.