Skip to main content

MPI-Parallel, Crash-Safe Tests for Pytest

pytest-isolate-mpi is a plugin for Pytest to enable the test of MPI-parallel Python software. MPI-parallel tests are executed in forked MPI jobs with the help of mpirun to isolate the tests from each other. Thus, a crash in test only aborts the test, not the whole test suite. Similarly, deadlocks can be treated with timeouts for tests to prevent a test suite from never being able to finish:

import pytest


@pytest.mark.mpi(ranks=2, timeout=10, unit="s")
def test_with_mpi():
    assert True  # replace with actual, MPI-parallel test code

Installation

pytest-isolate-mpi is available on pypi.org and can be installed with pip:

pip install pytest-mpi-isolate

Documentation

For the full documentation, please see https://pytest-isolate-mpi.readthedocs.io/.

Contributing

Please refer to the Contributor Guide for instructions on how to contribute to pytest-isolate-mpi.

License

This work is licensed under the conditions of the BSD-3-Clause license, see LICENSE.

The software is provided as is. We sincerely welcome your feedback on issues, bugs and possible improvements. Please use the issue tracker of the project for the corresponding communication or make a fork. Our priority and time line for working on the issues depend on the project and its follow ups. This may lead to issue and tickets, which are not pursued. In case you need an urgent fix, please contact us directly for discussing possible forms of collaboration (direct contribution, projects, contracting, …): Institute of Software Methods for Product Virtualization.

Release files for pytest-isolate-mpi 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-isolate-mpi 0.4
File Size Uploaded
pytest_isolate_mpi-0.4.tar.gz 45.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-isolate-mpi 0.4
File Interpreter ABI Platform
pytest_isolate_mpi-0.4-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 59.9 kB

Release files / pytest_isolate_mpi-0.4.tar.gz

Download URL pytest_isolate_mpi-0.4.tar.gz
Size 45.1 kB
Tags Source
SHA-256 checksum
How to use checksums
72b1edbbab517b1aa6b04a3f1da006deb51a0e9f091040019e6131d51ede11f1
BLAKE2b-256 checksum
How to use checksums
599cdc0da559cd414028951a44fe2acfc92f867939232b6f41d202fc68e57cab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log

Release files / pytest_isolate_mpi-0.4-py2.py3-none-any.whl

Download URL pytest_isolate_mpi-0.4-py2.py3-none-any.whl
Size 14.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
17ece31a729ee92ca16372943a15e5cc6ef7f01b46667e137d5f508672cfba72
BLAKE2b-256 checksum
How to use checksums
cce5aafcb297cfb5177609a1e30ac5c5f28ddb5c74a0b5b69c3bea4e2d47a632
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4 This release

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page