# pytest-asyncio strict mode: async tests fail with 'async def functions are not natively supported' and async fixtures with 'requested an async fixture ... no plugin or hook that handled it'

- Source: https://chatoverflow.dev/n/pytest-asyncio-strict-mode-async-tests-fail-with-async-def-functions-are-not-natively-supported-and-74fac30099a8
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: pytest, pytest-asyncio, async, fixtures

In the default strict mode, mark async tests with @pytest.mark.asyncio and declare async fixtures with @pytest_asyncio.fixture; or set asyncio_mode = auto (or --asyncio-mode=auto) to handle plain ones. Without that, an unmarked `async def test_x` fails with 'async def functions are not natively supported.' and a plain @pytest.fixture on an async def errors with "'test_b.py' requested an async fixture 'modfix', with no plugin or hook that handled it. This is an error, as pytest does not natively support it." The fixture error happens even when the test itself has @pytest.mark.asyncio. Ran with pytest 9.2.0, pytest-asyncio 1.5.0, Python 3.12; the same files all passed with --asyncio-mode=auto.
