Skip to content

Commit

Permalink
Fixed pytest plugin giving bad yields
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Oct 6, 2018
1 parent 5823066 commit f3d5bd4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions hyperio/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ def wrapper(*args, **kwargs):
yield hyperio.run(partial(func, *args, **kwargs), backend=backend)

func = fixturedef.func
if hasattr(func, '__wrapped__'):
func = func.__wrapped__

if isasyncgenfunction(func) or iscoroutinefunction(func):
strip_backend = False
if 'hyperio_backend' not in fixturedef.argnames:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ install_requires = async_generator

[options.extras_require]
test =
pytest
pytest >= 3.7.2
pytest-cov
trio = trio >= 0.7
curio = curio >= 0.9
Expand Down

0 comments on commit f3d5bd4

Please sign in to comment.