Skip to main content

pytest-jobserver

PyPI version Python versions Code coverage Build status

Limit parallel tests with posix jobserver.

Installation

Install with pip:

pip install pytest-jobserver

The plugin officially supports Python >= 3.6 on a Linux OS. You may find other Python 3 versions/MacOS work as well.

Usage

The plugin uses a POSIX jobserver to manage parallel test loading.

Pass the --jobserver argument with a path, where this path points to a named pipe acting as a jobserver. You should probably also use pytest-xdist to enable parallelism in the first place:

pytest -n4 --jobserver /opt/jobserver

You can also pass this filepath via the PYTEST_JOBSERVER environment variable.

make

The plugin can also listen for an existing jobserver as created by make. If a jobserver is not configured by filepath, pytest-jobserver will check the following environment variables in order:

  • CARGO_MAKEFLAGS
  • MAKEFLAGS
  • MFLAGS

Please note: it is not possible to use one of these environment variables with pytest-xdist. The execnet protocol used by xdist does not support passing file descriptors to remote child processes.

Implementation

This plugin wraps pytest's call to pytest_runtest_protocol, which is called to actually run a collected item on the worker node.

Development

See the top level Makefile and .circleci/config.yml for the development flow. But in essence:

  • make dev to install deps
  • make lint to lint code (will change files)
  • make test to run lint/unit tests
  • make integrate to run integration tests

Release

Maintainers can cut a new release by pushing a vX.Y.Z tag to the repo.

Metadata

Release files for pytest-jobserver 1.1.0

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-jobserver 1.1.0
File Size Uploaded
pytest_jobserver-1.1.0.tar.gz 11.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-jobserver 1.1.0
File Interpreter ABI Platform
pytest_jobserver-1.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 24.3 kB

Release files / pytest_jobserver-1.1.0.tar.gz

Download URL pytest_jobserver-1.1.0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
235d1101b6a3defd2d36223ff221aa9c2acc9e32233c7cda3c8320a269452078
BLAKE2b-256 checksum
How to use checksums
6df474470708b7e0600610999b5ff89c61bfe72a2e47173d4de44e4f6ad55a0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 2, 2026.

Transparency log

Release files / pytest_jobserver-1.1.0-py2.py3-none-any.whl

Download URL pytest_jobserver-1.1.0-py2.py3-none-any.whl
Size 12.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4b5521e3204f01eba1e2b79407cf3df41397115534a014ca45f769e120d42a10
BLAKE2b-256 checksum
How to use checksums
e5b048a7165fa51d3c3012ec108e37c759518e431853fc30daed24b377ce3c51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

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