Skip to content

Commit

Permalink
More specific Hypothesis detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Dec 13, 2018
1 parent d4c1b92 commit 1b66314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_asyncio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ def pytest_pyfunc_call(pyfuncitem):
function call.
"""
for marker_name, fixture_name in _markers_2_fixtures.items():
if isasyncgenfunction(pyfuncitem.obj) \
and marker_name in pyfuncitem.keywords:
if marker_name in pyfuncitem.keywords \
and not getattr(pyfuncitem.obj, 'is_hypothesis_test', False):
event_loop = pyfuncitem.funcargs[fixture_name]

funcargs = pyfuncitem.funcargs
Expand Down

0 comments on commit 1b66314

Please sign in to comment.