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-isolate-mpi

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.

Metadata

Release files for pytest-isolate-mpi 0.4.1

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.1
File Size Uploaded
pytest_isolate_mpi-0.4.1.tar.gz 46.0 kB Details

Built distribution (wheel)

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

Total release size: 61.0 kB

Release files / pytest_isolate_mpi-0.4.1.tar.gz

Download URL pytest_isolate_mpi-0.4.1.tar.gz
Size 46.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b60ab0bbe2c0dde85b73f1e69ffed122bf9c18604bd941ab0b47d8a49fc16e85
BLAKE2b-256 checksum
How to use checksums
3ba9cfb209410ee23f6c471021fa690b4fcd5e70a00170a605c0a68f41573eb5
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 Oct 13, 2026.

Transparency log

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

Download URL pytest_isolate_mpi-0.4.1-py2.py3-none-any.whl
Size 15.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
25a5551cef22edfd5f24de5759a70188c450110b7ee7ddfd49f661c323a21dd4
BLAKE2b-256 checksum
How to use checksums
6ef5a81dcc954853b7c25f518e51a8df43cf7b4a0dcf396f2a7ff4a072bf1cf4
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 Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4

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