Skip to content

Commit

Permalink
fix: Add positional arguments to the synchronous test function wrappe…
Browse files Browse the repository at this point in the history
…r. (#303)

This fixes a compatibility issue with Hypothesis 6.39.0.

Closes #302

Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
  • Loading branch information
seifertm authored Mar 3, 2022
1 parent 357cddb commit cad1b94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ Changelog
0.18.2 (Unreleased)
~~~~~~~~~~~~~~~~~~~
- Fix asyncio auto mode not marking static methods. `#295 <https://github.com/pytest-dev/pytest-asyncio/issues/295>`_
- Fix a compatibility issue with Hypothesis 6.39.0. `#302 <https://github.com/pytest-dev/pytest-asyncio/issues/302>`_


0.18.1 (22-02-10)
Expand Down
4 changes: 2 additions & 2 deletions pytest_asyncio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ def wrap_in_sync(
func = raw_func

@functools.wraps(func)
def inner(**kwargs):
coro = func(**kwargs)
def inner(*args, **kwargs):
coro = func(*args, **kwargs)
if not inspect.isawaitable(coro):
pyfuncitem.warn(
pytest.PytestWarning(
Expand Down

0 comments on commit cad1b94

Please sign in to comment.