Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pytest-asyncio

https://img.shields.io/pypi/v/pytest-asyncio.svg https://github.com/pytest-dev/pytest-asyncio/workflows/CI/badge.svg https://codecov.io/gh/pytest-dev/pytest-asyncio/branch/main/graph/badge.svg Supported Python versions Matrix chat room: #pytest-asyncio

pytest-asyncio is a pytest plugin. It facilitates testing of code that uses the asyncio library.

Specifically, pytest-asyncio provides support for coroutines as test functions. This allows users to await code inside their tests. For example, the following code is executed as a test item by pytest:

@pytest.mark.asyncio
async def test_some_asyncio_code():
    res = await library.do_something()
    assert b"expected result" == res

More details can be found in the documentation.

Note that test classes subclassing the standard unittest library are not supported. Users are advised to use unittest.IsolatedAsyncioTestCase or an async framework such as asynctest.

pytest-asyncio is available under the Apache License 2.0.

Installation

To install pytest-asyncio, simply:

$ pip install pytest-asyncio

This is enough for pytest to pick up pytest-asyncio.

Contributing

Contributions are very welcome.

Tests can be run with tox. Please ensure that all tests are passing and coverage at least stays the same before opening a pull request and marking it as ready for review.

Use of AI in contributions, including issues, pull requests, and comments, must follow our AI policy.

Metadata

Release files for pytest-asyncio 2.0.0a1

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-asyncio 2.0.0a1
File Size Uploaded Provenance Actions
pytest_asyncio-2.0.0a1.tar.gz 138.8 kB With provenance Details for pytest_asyncio-2.0.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-asyncio 2.0.0a1
File Interpreter ABI Platform Actions
pytest_asyncio-2.0.0a1-py3-none-any.whl Python 3 none any Details for pytest_asyncio-2.0.0a1-py3-none-any.whl

Total release size: 155.5 kB

Release files / pytest_asyncio-2.0.0a1.tar.gz

Download URL pytest_asyncio-2.0.0a1.tar.gz
Size 138.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ff414952c8659b6752e8688b7533a68ed28bf1de11221b8bcb4081b279440b08
BLAKE2b-256 checksum
How to use checksums
02f4f93420ae74368dc78d2772d742691b05e8d09b7fdcca4c86a4f2a571a08a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

Release files / pytest_asyncio-2.0.0a1-py3-none-any.whl

Download URL pytest_asyncio-2.0.0a1-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6a27f1ebaa7e47e46a7d1a7ff96896ffa9a80d622ea87f5686686050ac6c499
BLAKE2b-256 checksum
How to use checksums
7905e993ddb58a9b514c9e4f4a447b69dcc9716b3ed3de915fa36e8c5a30beff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

Security for pytest-asyncio 2.0.0a1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pytest_asyncio-2.0.0a1.tar.gz

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 Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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