Skip to content

Commit e465284

Browse files
committed
Fix
1 parent 1dba69b commit e465284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_asyncio/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def inner(**kwargs):
434434
coro = func(**kwargs)
435435
if not inspect.isawaitable(coro):
436436
pyfuncitem.warn(
437-
UserWarning(
437+
pytest.PytestWarning(
438438
f"The test {pyfuncitem} is marked with '@pytest.mark.asyncio' "
439439
"but it is not an async function. "
440440
"Please remove asyncio marker, "

0 commit comments

Comments
 (0)