Skip to content

Commit 1b66314

Browse files
committed
More specific Hypothesis detection
1 parent d4c1b92 commit 1b66314

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_asyncio/plugin.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ def pytest_pyfunc_call(pyfuncitem):
140140
function call.
141141
"""
142142
for marker_name, fixture_name in _markers_2_fixtures.items():
143-
if isasyncgenfunction(pyfuncitem.obj) \
144-
and marker_name in pyfuncitem.keywords:
143+
if marker_name in pyfuncitem.keywords \
144+
and not getattr(pyfuncitem.obj, 'is_hypothesis_test', False):
145145
event_loop = pyfuncitem.funcargs[fixture_name]
146146

147147
funcargs = pyfuncitem.funcargs

0 commit comments

Comments
 (0)