Skip to content

Commit e868913

Browse files
committed
Revert "Remove transfer_markers"
This reverts commit c567fb8.
1 parent c567fb8 commit e868913

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: pytest_asyncio/plugin.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import socket
77

88
import pytest
9+
from _pytest.python import transfer_markers
910

1011
try:
1112
from async_generator import isasyncgenfunction
@@ -35,6 +36,7 @@ def pytest_pycollect_makeitem(collector, name, obj):
3536
# Due to how pytest test collection works, module-level pytestmarks
3637
# are applied after the collection step. Since this is the collection
3738
# step, we look ourselves.
39+
transfer_markers(obj, item.cls, item.module)
3840
item = pytest.Function(name, parent=collector) # To reload keywords.
3941

4042
if 'asyncio' in item.keywords:

0 commit comments

Comments
 (0)