# async def functions are not natively supported.
You need to install a suitable plugin for your async framework, for example:
  - anyio
  - pytest-asyncio

- **ID:** `python/pytest-asyncio-no-mark`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

An async test function was collected without an asyncio marker or without pytest-asyncio in strict mode. In strict mode (default since 0.21), every async test must be decorated with @pytest.mark.asyncio.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 0.21 | active | — | — |
| 0.23 | active | — | — |
| 0.24 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   Add to pytest.ini:
  [pytest]
  asyncio_mode = auto
Or decorate each test:
  import pytest
  @pytest.mark.asyncio
  async def test_foo(): ...
   ```
2. **** (85% success)
   ```
   Install and use anyio instead:
  pip install anyio
  @pytest.mark.anyio
  async def test_foo(): ...
   ```

## Dead Ends

- **** — pytest still sees an async def and refuses to run it; the wrapper never executes. (90% fail)
- **** — The ini option is ignored if the plugin isn't installed; error persists. (85% fail)
