pytest_isolate_mpi package

Submodules

pytest_isolate_mpi.fixtures module

MPI-specific fixtures.

pytest_isolate_mpi.fixtures.comm_fixture() mpi4py.MPI.Comm[source]

Provides the MPI communicator available to the test.

pytest_isolate_mpi.fixtures.mpi_tmp_path_fixture(tmp_path, comm) Path[source]

Wraps Pytest builtin tmp_path fixture so that it can be used under MPI from all MPI processes.

This fixture ensures that only one process handles the creation of temporary folders broadcasts its path to the other processes.

pytest_isolate_mpi.fixtures.mpi_tmpdir_fixture(tmpdir, comm) LocalPath[source]

Wraps Pytest builtin tmpdir fixture so that it can be used under MPI from all MPI processes.

This fixture ensures that only one process handles the creation of temporary folders broadcasts its path to the other processes.

Module contents