---
id: pytest-asyncio
version: "1.4.0"
license: Apache-2.0
license_treatment: permissive
maintenance: active
---
# pytest-asyncio — Pytest support for asyncio
License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI
## Install
pip install pytest-asyncio
uv add pytest-asyncio
poetry add pytest-asyncio
## Description
pytest-asyncio
==============
.. image:: https://img.shields.io/pypi/v/pytest-asyncio.svg
:target: https://pypi.python.org/pypi/pytest-asyncio
.. image:: https://github.com/pytest-dev/pytest-asyncio/workflows/CI/badge.svg
:target: https://github.com/pytest-dev/pytest-asyncio/actions?workflow=CI
.. image:: https://codecov.io/gh/pytest-dev/pytest-asyncio/branch/main/graph/badge.svg
:target: https://codecov.io/gh/pytest-dev/pytest-asyncio
.. image:: https://img.shields.io/pypi/pyversions/pytest-asyncio.svg
:target: https://github.com/pytest-dev/pytest-asyncio
:alt: Supported Python versions
.. image:: https://img.shields.io/badge/Matrix-%23pytest--asyncio-brightgreen
:alt: Matrix chat room: #pytest-asyncio
:target: https://matrix.to/#/#pytest-asyncio:matrix.org
`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...
## AI interpretation — verify before relying
pytest-asyncio is a pytest plugin that enables testing of asyncio-based code by allowing coroutines to be used directly as test functions with the @pytest.mark.asyncio decorator.
Verdict: pytest-asyncio is a mature, actively maintained plugin (1656 stars, last commit 2026-08-12) with zero known vulnerabilities, permissive licensing, and low install friction. It is well-suited for projects testing asyncio code and is in the top 1000 PyPI packages by popularity.
[View on SkillFed](https://skillfed.io/packages/pytest-asyncio) · [View on PyPI](https://pypi.org/project/pytest-asyncio/)